[appengine-java] Re: about missing values
Hi Jason, maybe my question is a trivial for you but still: how melodramatically should I detect when the value is NOT set? As you already explained i can't use ==null. What should I use instead? Sincerely, Alex On Oct 21, 9:36 pm, Jason (Google) apija...@google.com wrote: No. If an entity does not have a value set for a particular property (null IS a value, different from missing), then it won't appear in any query results involving that property. You'll need to continue sifting through every entity to see if a value is set, and if not, setting it directly. - Jason On Mon, Oct 19, 2009 at 6:09 AM, Prashant antsh...@gmail.com wrote: hi, i added a new column to my data table, as it is newly added it is showing missing as column values in datastore. now i want to initialize those missing values to some value, say 0. how do i do that programmatically? i tried using column == null as filter but that doesn't work. --~--~-~--~~~---~--~~ 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] Re: about missing values
No. If an entity does not have a value set for a particular property (null IS a value, different from missing), then it won't appear in any query results involving that property. You'll need to continue sifting through every entity to see if a value is set, and if not, setting it directly. - Jason On Mon, Oct 19, 2009 at 6:09 AM, Prashant antsh...@gmail.com wrote: hi, i added a new column to my data table, as it is newly added it is showing missing as column values in datastore. now i want to initialize those missing values to some value, say 0. how do i do that programmatically? i tried using column == null as filter but that doesn't work. --~--~-~--~~~---~--~~ 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] Re: about missing values
People, it would be great for me to know this as well. Is there anyone who knows how to do this properly? On Oct 19, 4:09 pm, Prashant antsh...@gmail.com wrote: hi, i added a new column to my data table, as it is newly added it is showing missing as column values in datastore. now i want to initialize those missing values to some value, say 0. how do i do that programmatically? i tried using column == null as filter but that doesn't work. --~--~-~--~~~---~--~~ 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] Re: about missing values
the only way i could find is to fetch each and every entity and check if column == null. i ran a cron which checks 1 entity per min so that initialization goes smoothly without putting extra load on app. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---