I think the best way to explain my problem will be an example what I'm
trying to do.
Lets say I have Message and City entities. Each message is posted by a User
about a City. Now Users can add as many cities as they want to their
favorites.
I have to design the data model in the way that User sees Messages only
about the Cities they have in favorites (sorted by date).
First I thought about using reference property pointing to City in Message
model. But then I would have to use queries like this:
db.GqlQuery("SELECT * FROM Message WHERE city IN (1, 2, 3, 4, ....)
This will obviously not scale and break if User has more then 30 Cities in
favorites.
Thank you for any suggestions!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/4Ehrzx5BtQ0J.
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.