On Tue, Apr 28, 2009 at 8:13 AM, tommytastic <[email protected]> wrote:
>
> To Clarify, when I said "it makes the datastore more difficult to use,
> I mis-wrote that, I meant the datastore *admin*.
>
> It would be nice if google could provide some sort of "view" of the
> subclass entities within the datastore admin to make polymodel use
> easier to view.
>
> Yes, I noticed that it is indexing the class fields - this seems
> somewhat unnecessary - maybe google can turn that off?
It's unavoidable: They need to be indexed for any query that specifies
a subclass. This is also the reason why you'll need composite indexes
in more situations. For example, MyModel.all().order("foo") can be
done with the built in indexes, but MyPolyModel.all().order("foo")
requires a custom index, because it translates to
MyModel.all().filter("class =", "MyPolyModel").order("foo").
-Nick Johnson
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---