michaellperry / jinaga

Universal web back-end, offering an application-agnostic API, real-time collaboration, and conflict resolution.
http://jinaga.com
MIT License
35 stars 3 forks source link

Optimize query by comparing results against hash of prior results #30

Open michaellperry opened 5 years ago

michaellperry commented 5 years ago

Include with the query request a hash of the array of results that was last returned. Perhaps this can be carried as an ETag. On the server, execute the query and hash the new results. If the query produces the same hash as before, return a NOT MODIFIED response.