Re: [google-appengine] reading 1k entities needs 2 seconds

2010-01-22 Thread Wesley C (Google)
greetings! yes, fetching items from the datastore is expensive, hence a good reason why you should minimize fetches... using memcache is a great idea! poking through the code, there are a small number of minor optimizations you can make as well: > def __getUserKey(user,required=False): >  ret = d

[google-appengine] reading 1k entities needs 2 seconds

2010-01-22 Thread Romuald Brillout
i am reading 1112 entities from the datastore which takes ~2.5 seconds. i am wondering if such a running time is normal? or did something went wrong? anyways i'm quite surprized. The code i use to retrieve the entities is folling: class User(db.Model): user = db.StringProperty(required