diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-25 16:49:08 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-25 16:49:08 +1200 |
commit | 451c358879e1f6f2fda26e4b85ef97982fbeaba5 (patch) | |
tree | 9b40f2dff6b03b5fb66c29c93dd2fd20cb84b65a /debug.xml | |
parent | 4a31e34ca62d4b1941d3bc329afc127ef7263f34 (diff) | |
download | trackermap-server-451c358879e1f6f2fda26e4b85ef97982fbeaba5.tar.gz trackermap-server-451c358879e1f6f2fda26e4b85ef97982fbeaba5.tar.bz2 trackermap-server-451c358879e1f6f2fda26e4b85ef97982fbeaba5.zip |
Improve history clearing logic
Diffstat (limited to 'debug.xml')
-rw-r--r-- | debug.xml | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -323,8 +323,8 @@ DELETE FROM notifications WHERE id = :id; </entry> - <entry key='database.clearPositionsHistory'> - DELETE FROM positions WHERE id != :positionId and deviceid = :deviceId and servertime < :serverTime; + <entry key='database.deletePositions'> + DELETE FROM positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM devices); </entry> <!-- PROTOCOL CONFIG --> |