That's challenging. If there's a finite set of possible property names, you
can generate all these ahead of time using queries on your local datastore
instance. If not, you may want to reconsider using the property name as
metadata for exactly the reasons you mentioned. For properties that require
composite indexing, you can use a key and value property with indexable
values so composite indexing is possible.

On Fri, Feb 26, 2010 at 1:02 AM, AGS Rest <agsr...@gmail.com> wrote:

> I use the low level App Engine data store API, as it gives me the
> flexibility of having defining schemas on the fly, as Entities on the
> app engine don't really need a schema.
>
> Normally, if i needed to define a composite index that is based on an
> Entity's property and its ancestor; i can do so by defining an index
> in datastore-indexes.xml (by configuration). However, as the name of
> the property in this case is / can be determined only during the
> creation of the Entity itself, how can i mark properties of the Entity
> on which i need the composite index to be created?
>
> Is there a hook in the Datastore API that i can take advantage of ?
> Any insight would be appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to