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