appengine-rest-server icon indicating copy to clipboard operation
appengine-rest-server copied to clipboard

Paging and memcache

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

Hi,

I'm wondering what will happen when i use caching and paging at the same time.

Will there be a issue of pages getting "out of sync?"
(page 1 has old info and page2 has current info etc)

When one page memcache is deleted, shouldn't at the same time all other pages 
memcache be deleted to keep them synchronized?

Thanks


Original issue reported on code.google.com by [email protected] on 27 Feb 2013 at 1:28

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

currently, the caching in the rest server (if enabled) is pretty "dumb".  it 
doesn't make any attempt to proactively delete data other than adding a timeout 
to the cached data.  as such, the caching is really only recommended for models 
which change relatively infrequently or where stale data doesn't present an 
issue.

as an alternative, you can build the caching into the client layer and use the 
etags support to check the server for changes.  this won't remove datastore 
lookup times, but will remove transport costs of unchanged data.

Original comment by [email protected] on 28 Feb 2013 at 3:49

  • Added labels: Type-Other
  • Removed labels: Type-Defect

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter