On Mar 13, 12:06 am, Akbar Gadhiya <
akbar.gadh...@gmail.com> wrote:
> Hello Randolph,
>
> Thank you for quick response.
>
> I agree with you to remove joins. But lets say I want to apply group by in
> one table only and my requirement is to get a cursor object.
>
> Like,
>
> criteria = constructCriteria();
> DBObject sort = getSorting();
> DBCursor cursor = collection.find(criteria).sort(sort);
>
> What I found to perform group by is collection.group(......) API which
> returns DBObject.
>
> Is there any way I can get cursor over collection with grouping?
>
> Thanks,
> Akbar.
>
>
>
>
>
>
>
> On Mon, Mar 12, 2012 at 11:58 PM, Randolph Tan <
rando...@10gen.com> wrote:
> > I don't know any sites, but I can provide you with an example. It is
> > similar to calling commands (you can also check the docs page for more