Mark, Interesting that it does this. One thing you might try:
1. Run a mapper job 2. Read all the entities using the low level API 3. Explicitly set properties using the low level API's setProperty() and setUnindexedProperty() methods 4. Save entities back to the datastore This definitely should remove the indexes. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Oct 13, 2011 at 6:23 AM, markabrucey <[email protected]> wrote: > Basically I have gone through my datastore persist-able classes and have > annotated properties that I never need to query on like this: > > @Extension(vendorName="datanucleus", key="gae.unindexed", value="true") > private Long random; > > I needed to test whether or not JDO removed the index when I changed the > POJO by annotating a property as unindexed. > > So I created a simple test to read in an existing entity, updated it (with > properties holding the exact same values as before), then finally queried on > it using the now unindexed property "random". I woud have expected for it to > not appear again once updated (because the property is now unindexed), which > would have suggested that JDO was handling the index deletion correctly, but > it appears not. > > Are there any settings that I may need to change in order to allow JDO to > delete the now un-needed single property indexes? Is there a way I can > remove / vacuum these single property indexes (that I don't need anymore) > myself? > > Thanks, > > Mark > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine-java/-/whSOGsiNGrUJ. > 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-java?hl=en. > -- 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 [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-java?hl=en.
