SelfReferenceProperty vs. ListProperty Google App Engine
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-03-22T21:01:34Z
Indexed on
2010/03/22
23:51 UTC
Read the original article
Hit count: 288
Hi All,
I am experimenting with the Google App Engine and have a question.
For the sake of simplicity, let's say my app is modeling a computer network (a fairly large corporate network with 10,000 nodes). I am trying to model my Node class as follows:
class Node(db.Model): name = db.StringProperty() neighbors = db.SelfReferenceProperty()
Let's suppose, for a minute, that I cannot use a ListProperty(). Based on my experiments to date, I can assign only a single entity to 'neighbors' - and I cannot use the "virtual" collection (node_set) to access the list of Node neighbors.
So... my questions are:
- Does SelfReferenceProperty limit you to a single entity that you can reference?
- If I instead use a ListProperty, I believe I am limited to 5,000 keys, which I need to exceed.
Thoughts?
Thanks, John
© Stack Overflow or respective owner