Re: [appengine-java] Does JDO auto remove indexes that now have unindexed properties?

2011-10-27 Thread markabrucey
Thanks for the reply Ikai, that was the information I needed. -- 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/-/85UIicBcxZQJ. To post to

Re: [appengine-java] Does JDO auto remove indexes that now have unindexed properties?

2011-10-27 Thread Jeff Schnitzer
Wild guess: If you load an entity in JDO and set a property to be exactly what it was before, this won't actually flag the entity as dirty. It won't be written when you commit the session. I don't know how you would force a write using JDO. Jeff On Thu, Oct 13, 2011 at 6:23 AM, markabrucey

[appengine-java] Does JDO auto remove indexes that now have unindexed properties?

2011-10-14 Thread markabrucey
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

Re: [appengine-java] Does JDO auto remove indexes that now have unindexed properties?

2011-10-14 Thread Ikai Lan (Google)
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