[google-appengine] Re: Retrieving all entities from datastore

2009-09-29 Thread Tomi Korhonen
ore details > here:http://code.google.com/appengine/docs/python/tools/uploadingdata.html... > > -Nick Johnson > > On Tue, Sep 29, 2009 at 8:17 AM, Tomi Korhonen wrote: > > > > > > > Thanks Wooble, > > > I have missunderstood the whole offset thing. Is there

[google-appengine] Re: Retrieving all entities from datastore

2009-09-29 Thread Tomi Korhonen
h a list of 1999 items, all but 1 of which are > duplicated). > > On Sep 26, 1:01 pm, Tomi Korhonen wrote: > > > Hi, > > > I am trying to fetch all entities from datastore ordered by date. The > > following code does not work (hangs up). Any ideas what is wr

[google-appengine] Retrieving all entities from datastore

2009-09-26 Thread Tomi Korhonen
Hi, I am trying to fetch all entities from datastore ordered by date. The following code does not work (hangs up). Any ideas what is wrong with it? items = [] offset = 0 while True: tempItems = Item.all().order("date").fetch(1000, offset) items.extend(tempItems)

[google-appengine] Re: Datastore query

2009-09-16 Thread Tomi Korhonen
20-30 phone_numbers, and 90% of the phone numbers would be filtered out. Br, Tomi On 16 syys, 17:41, "Nick Johnson (Google)" wrote: > On Tue, Sep 15, 2009 at 7:33 PM, Tomi Korhonen wrote: > > > > > > > Hi guys, > > > I just started learning app engine b

[google-appengine] Datastore query

2009-09-15 Thread Tomi Korhonen
Hi guys, I just started learning app engine by developing a small application. I am facing following problem: 1) I have following model class Contact(db.Model): name = db.StringProperty() type = db.StringProperty() class PhoneNumber(db.Model): contact = db.ReferenceProperty(Contact,