Add index for check before recording.
This commit is contained in:
parent
3660bc1fb3
commit
302e9a80dc
@ -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);
|
||||
|
@ -28,3 +28,8 @@ CREATE INDEX "idx_getmarkers" ON "locations" (
|
||||
"accuracy",
|
||||
"altitude"
|
||||
);
|
||||
|
||||
CREATE INDEX "idx_epochexisting" ON "locations" (
|
||||
"tracker_id",
|
||||
"epoch" DESC
|
||||
);
|
||||
|
Reference in New Issue
Block a user