Hi, I create a hirarchy data in datastore using parents. For example:
A ... childs : B, C
B ... childs : D, E
C ... childs : F, G
Now, I would like select childs of A using ANCESTOR IS, but the query return
all descendants (B, C, D, E, F and G). Do you know how I can retrieve only the
direct chi
Hi Pau,
if I understood correctly, your entities are connected by using
reference properties.
B ref -> A
C ref -> A
D ref -> B
E ref -> B
etc etc
In this case you should be able to get his direct childs in a very
cheap way, buy using the the implicit proprieties created on the
entity A
(search:"
Hi Pau,
If you are using entity groups, you'll need to add a reference
property (or some similar idea) so that you can query for 'direct'
descendants, 'B' and 'C', of 'A'.
Robert
On Mon, May 9, 2011 at 18:05, Pau wrote:
> Hi, I create a hirarchy data in datastore using parents. For examp
Thank you for your help!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.com.
F
Be more specific so that it can be analysed better
Regards,
Mani
For Technical Help visit at
http://www.magghu.com
On Tue, May 10, 2011 at 3:35 AM, Pau wrote:
> Hi, I create a hirarchy data in datastore using parents. For example:
> A ... childs : B, C
> B ... childs : D, E
> C ... childs : F