-
Notifications
You must be signed in to change notification settings - Fork 375
Rely on a DB table for artwork scans to prevent repeated disk access #1621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: public/9.2
Are you sure you want to change the base?
Changes from all commits
aadea46
2f7076c
585551b
70b81eb
5b55ff7
313ed70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| DROP TABLE IF EXISTS scanned_files; | ||
| CREATE TABLE scanned_files ( | ||
| url text NOT NULL COLLATE NOCASE, -- URL must be case insensitive, or we might duplicate tracks if the filename changes case only (https://github.com/LMS-Community/slimserver/issues/705#issuecomment-1026229542) | ||
| timestamp int(10), | ||
| filesize int(10) | ||
| ); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wasn't suggesting removing the nocase from scanned_files. Does #705 no longer apply?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heh... what were you suggesting then?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just remove it from scanned_pics.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. Got it. Thanks for the clarification. |
||
| CREATE INDEX scannedUrlIndex ON scanned_files (url); | ||
|
|
||
| DROP TABLE IF EXISTS scanned_pics; | ||
| CREATE TABLE scanned_pics ( | ||
| url text NOT NULL, | ||
| timestamp int(10), | ||
| filesize int(10) | ||
| ); | ||
| CREATE INDEX scannedPicUrlIndex ON scanned_pics (url); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| DROP TABLE IF EXISTS scanned_files; | ||
| CREATE TABLE scanned_files ( | ||
| url text NOT NULL COLLATE NOCASE, -- URL must be case insensitive, or we might duplicate tracks if the filename changes case only (https://github.com/LMS-Community/slimserver/issues/705#issuecomment-1026229542) | ||
| timestamp int(10), | ||
| filesize int(10) | ||
| ); | ||
| CREATE INDEX scannedUrlIndex ON scanned_files (url); | ||
|
|
||
| DROP TABLE IF EXISTS scanned_pics; | ||
| CREATE TABLE scanned_pics ( | ||
| url text NOT NULL COLLATE NOCASE, -- URL must be case insensitive, or we might duplicate tracks if the filename changes case only (https://github.com/LMS-Community/slimserver/issues/705#issuecomment-1026229542) | ||
| timestamp int(10), | ||
| filesize int(10) | ||
| ); | ||
| CREATE INDEX scannedPicUrlIndex ON scanned_pics (url); |
Uh oh!
There was an error while loading. Please reload this page.