Hi Cornel,
Both the keyWords_S and subcategory fields are lists, which means this will
be an 'exploding' index - the number of entries required is the product of
the number of entries in each list. If this exceeds a few thousand for any
entity, the list is likely to fail to build.

-Nick Johnson

On Sun, Sep 6, 2009 at 11:10 PM, Cornel <corneliu.lupu...@gmail.com> wrote:

>
> Hello!
>
> The following index definition keeps giving "Error". What are the
> possible reasons for an index to be error prone?
>
>   <datastore-index kind="DbContact" ancestor="false" source="auto">
>        <property name="isCustomerProfile" direction="asc"/>
>        <property name="keyWords_S" direction="asc"/>
>        <property name="subcategory" direction="asc"/>
>        <property name="version" direction="asc"/>
>        <property name="__key__" direction="asc"/>
>    </datastore-index>
>
> Here is a part of the DbContact class:
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION)
> public class DbContact extends DbEntity {
>
>    @PrimaryKey
>    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>    @Extension(vendorName="datanucleus", key="gae.encoded-pk",
> value="true")
>    private String encodedKey;
>
>        @Persistent
>        private String version
>        @Persistent
>        private List<String> category;
>        @Persistent
>        private List<String> subcategory;
>        @Persistent
>        private String isCustomerProfile;
>        @Persistent
>        private List<String> keyWords_S;
>
> I shoud mention the i also have an index similar to the one above, the
> only difference being "category", instead of "subcategory", which was
> created succesfully and is now "Serving".
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to