Note: for an updated version of this and other articles, we recommend you to check our knowledge base here
GUIDE: Best practice for track recorder.
GpsGate will show all updates live whichever rate the GPS tracker sends them to the server. Live Event Rules will also be processed in any rate.
However it is not always necessary to store all track data in the database. Only data needed to process reports correctly and to display tracks correctly is needed. Most data sent to the server is redundant and can be filtered away once used for Live purposes.
The mechanism in GpsGate doing this is called the "Track Recorder". It has now been improved to display tracks better, and still using less database storage and CPU. If you have a faster update rate than once per 60 seconds it is important you read this for best performance. You can get as many as 5 times more GPS trackers on one server if you do this right. Tracks will also load and draw much faster, and reports will be processed faster.
Here are the best practices.
Make sure your Plugins are up to date
Make sure all plugins are "green" under SiteAdmin -> Plugins.
Note that the Track Recorder will not filter any Live data! It only removes redundant data you don't need, which wastes database storage and CPU required to store the data!
Set the TimeFilter to 60 seconds. This is the default value.
You can do this manually for each user, or by using this SQL query
UPDATE track_recorder SET time_filter = 60;
Note that even if you have a 10 second update rate, you should have the TimeFilter at 60.
If you want to prevent your users to set a lower TimeFilter value, use this SQL query:
UPDATE settings SET value_data = '60' WHERE value_name = 'MinTimeFilter';
Set the DirectionFilter to 30 degrees.
First you need to allow a new minimum value with this SQL query:
UPDATE settings SET value_data = '30' WHERE value_name = 'MinDirectionFilter';
You can then set the DirectionFilter manually for each user, or by using this SQL query
UPDATE track_recorder SET direction_filter = 30;
If you have a larger server in production and want advise, contact support.
TIPS: Improve GpsGate Server performance!