Hi Matt,

I would not expect a ListProperty of ints to give you substantial
extra capacity, unless your keys are exceptionally long. At 4000
items, you're running into the limit of the permitted number of index
rows per entity anyway, rather than any size-based limit.

-Nick Johnson

On Mon, May 25, 2009 at 2:36 AM, Matt <[email protected]> wrote:
>
> Hello.  I'm writing an app in which I'm storing a list of keys in one
> of the models.  I'm trying to figure out the best approach.  The other
> approach I thought of was to store a list of integer values (storing
> the ID property).
>
> But since I am passing a custom key name (to allow a nice use of
> get_or_insert elsewhere in the app) I am not getting ID values.
>
> The reason I ask is b/c I tested on the development version and I was
> able to store 4,000 keys in a ListProperty(db.Key)
>
> item_list = ListProperty(db.Key).
>
> Can anyone shed some light on which would be faster and/or more space
> efficient for querying?
>
> k1 = Key("foo")
> MyModel.gql("WHERE item_list = :1", k1)
>
> vs using  ListProperty(int)
>
> I like being able to use custom key names, but I'd much rather trade
> better peformance or storage efficiency for it.
>
> Thoughts would be much appreciated...
> 

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