No, there isn't. Think of the datastore as a giant dictionary/hash
table/whatever. Think of indexes as another dictionary where the key is:

SomeEntity:property1:value:entityKeyHere123

A "None" value is indexed, but an "empty" property is one which is not
indexed. Because it's not indexed, we can't find it.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Tue, Jan 11, 2011 at 12:30 PM, mcnemesis <[email protected]> wrote:

>
>    I recently had to update one of my model's properties from type *
> StringProperty* to *TextProperty* in order to overcome the restrictive
> limit (a maximum of 500 characters). That wasn't a problem till I realized
> some of my old queries like:
>
> SomeEntity.gql('WHERE property1 != :1',None)
>
>  where property1 is a property in the model couldn't work :-(.
>
> The query previously worked, and it did help me to only fetch those
> entities that had a value set for property1.
>
> How can I efficiently obtain the same results in this scenario where the
> type is *TextProperty*?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to