How to store tag cloud on Google App Engine for Java (JPA is preference)

31 views
Skip to first unread message

planetjones

unread,
Jul 17, 2010, 7:29:59 AM7/17/10
to Google App Engine
Hi,

I'm looking to store entities using GAE Java which have 1-many tags. I
would like to display a tag cloud, so will need to know how many times
each tag occurs (can't use aggregate functions and group by on GAE to
do this like I would in SQL). And when I click a tag I would like to
retrieve all entities with the selected tag.

Does anyone have any examples of what my Classes should look like to
do this optimally and efficiently? Sample JPA code would be great too.

Cheers - Jonathan

Ikai L (Google)

unread,
Jul 21, 2010, 9:00:08 PM7/21/10
to google-a...@googlegroups.com
I'd keep an Entity with counts and also store each Tag inside a List property. To visualize it, I'd use this library:



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




--
Ikai Lan 
Developer Programs Engineer, Google App Engine
Reply all
Reply to author
Forward
0 new messages