google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Write behind #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This feature request is inspired by:
http://groups.google.com/group/objectify-appengine/browse_thread/thread/703bbc06
f74f9eee

Write behind is
1. Put object to cache.
2. Create task with cache object key as parametr
3. Task get object from cache by key
4. Task write object to datastore

This pattern is described by Brett Stalkin in Google I/O

Original issue reported on code.google.com by nikolay....@gmail.com on 15 Feb 2011 at 10:07

GoogleCodeExporter commented 9 years ago
This could be an option within the CachingAsyncDatastoreService, and activated 
with an option on ObjectifyOpts.  Probably the global cache mode would need to 
become an enum { OFF, WRITE_THROUGH, WRITE_BACK } with the default (as 
currently) WRITE_THROUGH.

Original comment by lhori...@gmail.com on 15 Feb 2011 at 10:18

GoogleCodeExporter commented 9 years ago
This seems niche enough that it doesn't feel like something that belongs in 
Objectify.

Original comment by lhori...@gmail.com on 14 Apr 2014 at 12:13