1
0

Add index for check before recording.

This commit is contained in:
Markus Birth 2018-04-27 10:40:21 +02:00
parent 3660bc1fb3
commit 302e9a80dc
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 7 additions and 0 deletions

View File

@ -22,3 +22,5 @@ CREATE TABLE `locations` (
) DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
CREATE INDEX `idx_getmarkers` ON `locations` (`epoch` DESC, `accuracy`, `altitude`);
CREATE INDEX `idx_epochexisting` ON `locations` (`tracker_id`, `epoch` DESC);

View File

@ -28,3 +28,8 @@ CREATE INDEX "idx_getmarkers" ON "locations" (
"accuracy",
"altitude"
);
CREATE INDEX "idx_epochexisting" ON "locations" (
"tracker_id",
"epoch" DESC
);