At the current rate, with 1 live user, the JourneyTrackPoints table will contain 50,000 records by (very) early 2014.
With multiple users live, the table is likely to grow in size quite substantially (a six hour drive is likely to create ~4320 records)
Would be wise to split the table before proceeding with any further modifications to the Journeys submodule.
Current thinking is to base the split on the trackID;
|trackid|trackpoints table|
|1|#__JourneyTrackPoints_Tracks_50|
|40|#__JourneyTrackPoints_Tracks_50|
|50|#__JourneyTrackPoints_Tracks_50|
|70|#__JourneyTrackPoints_Tracks_100|
|71|#__JourneyTrackPoints_Tracks_100|
The method of calculation could be as simple as
(ceil($trackpointID/50))*50;
50 is an arbitrary number picked as an example, but a set figure should be chosen as it won't be possible to change it at a later date.
Would be wise to add the calculation to the helper.
As the current Track ID has reached 2704 (due to a resolved bug discovered in
VEH-46) will need to perform a manual split of the existing data in the live database.
The cron run should check whether the limit is being approached and create a new table if it's near.
Would also be wise to store the current table number somewhere so that various routines (especially cron) can quickly look it up
Activity
2013-12-01 22:11:32
2013-12-01 22:30:18
Obviously the number of trackpoints per journey will vary, but also don't want to create more tables than is necessary, but based on the current size
Table size on disk
20496384/1024^2 = 19.54MB
Index size on disk
14204928 / 1024^2 = 13.546875MB
Might also be worth looking at whether it's possible to reduce the size of the index somewhat
2013-12-01 22:31:50
2013-12-01 22:46:41
it's left the harder the manual split will be.
To try and reduce the index size, it's worth taking a dump of the live
table and adjusting the indexes offline. This needs to happen before the
split can be implemented.
2013-12-27 00:04:25
2019-09-09 16:22:05
Realistically, this project's not going to see any further development (other than possibly some bug fixes for anything new that's found).
Closing any outstanding issues as Won't Fix
2019-09-09 16:22:05
2019-09-09 16:22:05