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 this group, send email to google-appengine-java@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.



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 markabru...@gmail.com 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
 google-appengine-java@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.


-- 
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-java@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.



[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 
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 google-appengine-java@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.



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 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 markabru...@gmail.com 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
 google-appengine-java@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.


-- 
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-java@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.