Closed Aidan275 closed 6 years ago
The first option is certainly the easiest. I'm unsure if the second option is necessary. A marker object would say be at most 0.5KB. But also, there could be hundreds or thousands of markers. It adds up.
We could do some clever hybrid where you retrieve all of them and cache them on the device. The device sends a timestamp to see if there's new markers and the server can send the updated batch, or better, only the changed ones.
Okay, so maybe we keep it how it is for now then if we have time, we can try doing it the clever way.
We could also just return the bare minimum (the coordinates and id) then if the user clicks the marker another call is made to the database to get the individual marker's information.
You also need the filename, timestamp and file type at the bare minimum. I think just keep it how it is for now and stretch goal the better way.
Which would be better: