SelfReferenceProperty vs. ListProperty Google App Engine
- by John
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