1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 18:14:50 +02:00

Add an index on the file mtime. For future users for now

This commit is contained in:
Leo Franchi
2012-02-17 19:08:59 -05:00
parent a1c69b0b43
commit 8bb9661960

View File

@@ -162,6 +162,7 @@ CREATE TABLE IF NOT EXISTS file (
); );
CREATE UNIQUE INDEX file_url_src_uniq ON file(source, url); CREATE UNIQUE INDEX file_url_src_uniq ON file(source, url);
CREATE INDEX file_source ON file(source); CREATE INDEX file_source ON file(source);
CREATE INDEX file_mtime ON file(mtime);
-- mtime of dir when last scanned. -- mtime of dir when last scanned.
-- load into memory when rescanning, skip stuff that's unchanged -- load into memory when rescanning, skip stuff that's unchanged