diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-27 17:35:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-27 17:35:29 +1200 |
commit | 51169169b4f34fe23cbcd0c26d46815ba9292e60 (patch) | |
tree | 4f107b2f72914f8aad0542b56e638b21d96010f5 /debug.xml | |
parent | d15ed63e4d276737a88e849c27af2876bf56a82e (diff) | |
download | trackermap-server-51169169b4f34fe23cbcd0c26d46815ba9292e60.tar.gz trackermap-server-51169169b4f34fe23cbcd0c26d46815ba9292e60.tar.bz2 trackermap-server-51169169b4f34fe23cbcd0c26d46815ba9292e60.zip |
Add position SQL index
Diffstat (limited to 'debug.xml')
-rw-r--r-- | debug.xml | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,8 +73,6 @@ FOREIGN KEY (userId) REFERENCES user(id) ON DELETE CASCADE, FOREIGN KEY (deviceId) REFERENCES device(id) ON DELETE CASCADE); - CREATE INDEX user_device_user_id ON user_device(userId); - CREATE TABLE position ( id INT PRIMARY KEY AUTO_INCREMENT, protocol VARCHAR(1024), @@ -91,6 +89,8 @@ address VARCHAR(1024), other VARCHAR(8192) NOT NULL, FOREIGN KEY (deviceId) REFERENCES device(id) ON DELETE CASCADE); + + CREATE INDEX position_deviceId_fixTime ON position(deviceId, fixTime); CREATE TABLE data ( id INT PRIMARY KEY AUTO_INCREMENT, |