Did you enable auto index in datastore-indexes.xml and generated
datastore-indexes-auto.xml is correct?

On Dec 1, 6:33 pm, Eric Rannaud <[email protected]> wrote:
> On Tue, Dec 1, 2009 at 3:21 PM, yejun <[email protected]> wrote:
> >> id is not the primary key of MessageS, but a 'long' field, _unique_ in
> >> each entity (so it maps 1-to-1 with the entities). Note: such a query
> >> doesn't require a specific index.
>
> > Why "such a query doesn't require a specific index"?
>
> I mean, according to the documentation, you can execute such a query
> without building an index for it, as App Engine provides automatic
> indexes in such a case.
>
> "App Engine provides automatic indexes for the following forms of queries:
>   - queries using only equality and ancestor filters
>   - queries using only inequality filters (which can only be of a
> single property)
>   - queries with no filters and only one sort order on a property,
> either ascending or descending
>   - queries using equality filters on properties and inequality or
> range filters on keys"
>
> My query is of the second type.
>
> > There's no such thing as unique constraint on google data store.
>
> I don't understand what you mean.

This is related to issue #178 
http://code.google.com/p/googleappengine/issues/detail?id=178

--

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.


Reply via email to