for post in Post.gql('') will return 1000 max.
On Oct 20, 11:33 am, theo <[EMAIL PROTECTED]> wrote:
> Ok, but that doesn't answer the fundamental quastion.
>
> Does this work:
>
> posts = []
> for post in Post.gql('')
> posts.append(post)
>
> db.delete(posts)
>
> On Oct 20, 6:33 am, Ross Ridge <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] wrote:
> > > I have a very quick question that I was not able to decide by looking
> > > at the docs. As the title suggests, I'm wondering whether
> > > db.delete(Post.all()) would delete every single post even if there
> > > were more than 1000 Posts.
>
> > The delete function will only delete the entities you pass to it.
> > Since the Post.all() query can't match more than 1000 Posts, only
> > those Posts will be deleted.
>
> > Ross Ridge
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---