Hi all,

I am thinking of away to imlement a generic way for my frequently
readed data models. The access pattern for these models is that they
will be retrieved very frequently but updated maybe once in a month.
Think aboiut a game site. Game categories will not and should not be
updated at the time they are created. BUt these will be used in my
front page so every page request will query the db for all the game
categories. So best way is to memcache these entries.

So, what you prefere as a best practice for these kind of things? I am
thinking of a generic class that takes a model as a parameter and
hooks the put() method of it. If model is somehow changed, I will
update a dirty flag and retrive the contents from the DS, otherwise
get it from the memcache. But not sure, how to hook all db
operationsof a model, there are many ways to do that and I am assuming
there must be a better way to do this, maybe someone else has already
done this work? Is there a generic way to do this?

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to