No, we can't know all possible values without traversing the entire index.
Your best bet is to keep a "running count" - when someone enters a new
color, save it. If you need to generate this data based on existing
properties, I would suggest appengine-mapreduce (
http://code.google.com/p/appengine-mapreduce).

--
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, Dec 21, 2010 at 9:22 AM, jacek.ambroziak
<[email protected]>wrote:

> Say, I have a set of Person Entities with List<String> favoriteColor
> property.
> People can specify their own sets of colors for that property.
>
> Can I access the union of these color sets, ie. all the values they have
> entered
> for this property? The values should sit in the DataStore index, ordered,
> but can we access such data?
>
> --
> 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]<google-appengine-java%[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.

Reply via email to