aronstrandberg / mvk15

MVK Project: Data Collection Using a Drone, and Graphical Representation via MVC
4 stars 0 forks source link

Only request new data points #57

Closed aronstrandberg closed 9 years ago

aronstrandberg commented 9 years ago

When fetching new data, only retrieve new ones instead of fetching everything

sandrahb4 commented 9 years ago

This is done in the PHP program? We added an attribute called "Read" and we fetch the rows in which the read is 0 and update them to 1. Then we only get the new ones. @aronstrandberg

aronstrandberg commented 9 years ago

@karlek and I came up with a better solution, which is to send the maximum previously received id with the GET request, and then respond only with the ids which are greater. This means I have to keep track of this in the js code as well.