Aidan275 / nativeqda-dev

NativeQDA
http://dev.nativeqda.xyz/
GNU General Public License v3.0
2 stars 0 forks source link

Map markers question #28

Closed Aidan275 closed 6 years ago

Aidan275 commented 6 years ago

Which would be better:

Lucas-W commented 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.

Aidan275 commented 6 years ago

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.

Lucas-W commented 6 years ago

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.