I developed an andoroid app for saving runners tracks-routs.
Because it is a running app i need to report location every 10 seconds.
That means that each 10sec the lang lat being saved as local copy on the sqlite on the device
and on the webserver using webservice call.
The aim of the app is to show the exact position in each certain time
and the speed of the person.
My friends and I installed the app 3 weeks and used it almost every day for few hours
and my db is flooded about 6,000,000 records – record for each
I will not be able to keep running it because the server will space will be be over.
Is there any other way i could save the posuitions or any other architecture or algorithm that will
allow me to know the exact position of person in any point of the track and his speed?
shouldn’t you only have:
3 (weeks) * 7 (days) * 3 (hours) * 60 (minutes) * 6 (10 sec intervals) = 22680 records per runner?
one approach could be to store run data as a string and store one record in db per “run” (or one per hour, or n minutes)
string could be formated to only store starting location and offsets like: “36.234234234,-114.3434434,0.004,0.006,0.002,0.000 …