mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
Add indexes to better support certain queries
This commit is contained in:
parent
9812b8f6c8
commit
a5a8c2553b
@ -0,0 +1,3 @@
|
||||
CREATE INDEX "joblog_id_created_idx" ON "joblog"("jid", "created");
|
||||
-- H2 doesn't support coalesce in create index
|
||||
--CREATE INDEX "item_itemdate_created_idx" ON "item"(coalesce("itemdate", "created"));
|
@ -0,0 +1,3 @@
|
||||
CREATE INDEX `joblog_id_created_idx` ON `joblog`(`jid`, `created`);
|
||||
-- MariaDB doesn't support coalesce in index
|
||||
--CREATE INDEX `item_itemdate_created_idx` ON `item`(coalesce(`itemdate`, `created`));
|
@ -0,0 +1,2 @@
|
||||
CREATE INDEX "joblog_id_created_idx" ON "joblog"("jid", "created");
|
||||
CREATE INDEX "item_itemdate_created_idx" ON "item"(coalesce("itemdate", "created"));
|
Loading…
x
Reference in New Issue
Block a user