I have an application that saves gps data every second and the user is able to query a variable timespan of data at once. So a select statement potentially needs to return many thousand rows. How is a small EC2 instance going to handle such requests? Would it help if I saved the coordinates of several hundred rows as an array in a single row like this:
instead of single rows:
timestamp, lon, lat
1,11,12
2,11,12
3,11,12
4,11,12
...
batches:
timestamp-start,timestamp-stop,lon,lat
1,300,[11,43,23,...],[11,43,23,...]
301,600,[11,43,23,...],[11,43,23,...]
or is the performance equal for many rows with little data and few rows with a lot of data.