I think each item in the list has two indexes(asc and desc), and key has an
asc index, so the answer is 401.

----------
keakon

My blog(Chinese): www.keakon.net
Blog source code: https://bitbucket.org/keakon/doodle/



On Fri, Dec 17, 2010 at 10:09 PM, Ryan <[email protected]> wrote:

> I know that there is a limit of 5000 index entries per entity, which
> means I can't do things like this:
>
> class Foo(db.Model):
>    x = db.ListProperty(int)
>    y = db.ListProperty(int)
>
> foo1 = Foo(x = range(5001))
> foo1.put()
>
> Furthermore, if I have the index in index.yaml
>
> - kind: Foo
>  properties:
>  - name: x
>  - name: y
>
> then I also see from this thread:
>
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/d5f4dcb7d00ed4c6
>
> that I can't do this:
>
> foo2 = Foo(x = range(100), y=range(100))
> foo2.put()
>
> because that would give me 10,000 index entries.
>
> However, my question is: if I DON'T have any entries in index.yaml for
> Foo and try:
> foo3 = Foo(x = range(100), y=range(100))
> foo3.put()
>
> will that still raise the "BadRequestError:Too many indexed properties
> for entity" exception? From my tests, it looks like it won't cause any
> errors. Is this correct? How many index entries would foo3 have in
> this case? Is it 200 (the sum of the lengths of each list)? Or
> something else?
>
> --
> 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]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
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