Grouping is a SQL operation that is not supporting by the datastore. This is
precisely the type of operation MapReduce is perfect for. Check out this
presentation I saw posted in the groups this morning:

http://prezi.com/rewcweixasyj/do-task-queues-dream-of-mapreduce/

On Sun, Apr 4, 2010 at 6:20 AM, SivaTumma <[email protected]> wrote:

> Hi All,
>
> I have a scenario where I track all the sales data for each day.
> My Object signature looks like this:
>
> class SalesData(db.Model):
>  sales_amount = db.FloatProperty()
>  when = db.DateProperty(auto_now_add=True)
>  item = db.StringProperty()
>
> the SalesData.sales_amount will be automatically incremented as and
> when an item of some name is sold.
>
> Now I need to print on a Graph which shows the items on y-axis,
> sales_amount-s on the axes plane, and the dates on the x-axis.
>
> I Used the graphy chart_api which makes the display part very easy;
> But then, I need to fetch the data accordingly. ** group by dates,
> items **
>
> Can anyone guide me how I can get a list of different Items, grouped
> by date ?
>
> Thank you for all who answers this.
>
> --
> 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.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

-- 
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