New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query / get caching #84

Open
glaforge opened this Issue Nov 16, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@glaforge
Contributor

glaforge commented Nov 16, 2011

Would be nice to be able to cache the result of the dsl queries in memcache, to avoid costly rountrips to the datastore.
Both datastore.execute {} and datastore.get() could benefit from such an approach.

@codeconsole

This comment has been minimized.

Show comment
Hide comment
@codeconsole

codeconsole Feb 15, 2012

Contributor

I started working on a plugin a while back that added datastore.mget and datastore.mput

We wouldn't want to have datastore.get check memcache because then we could not use it in transactions as I believe there would be no way to check for a ConcurrentModificationException

Queries are a little bit tricky when you are dealing with results that change a lot. I explored key only queries for that and then getting an array of entities from memcache and then getting any missing results via a datastore array fetch.

I would like to see query caching, but we would need support for both cursors and offsets as well as obviously setting an expiration time.

Contributor

codeconsole commented Feb 15, 2012

I started working on a plugin a while back that added datastore.mget and datastore.mput

We wouldn't want to have datastore.get check memcache because then we could not use it in transactions as I believe there would be no way to check for a ConcurrentModificationException

Queries are a little bit tricky when you are dealing with results that change a lot. I explored key only queries for that and then getting an array of entities from memcache and then getting any missing results via a datastore array fetch.

I would like to see query caching, but we would need support for both cursors and offsets as well as obviously setting an expiration time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment