Parse.com相当于集团通过 [英] Parse.com equivalent to Group By

查看:105
本文介绍了Parse.com相当于集团通过的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在读通过解析论坛,我推测,由于2年前没有SQL集团截至等价的。

I have been reading through parse forums and I gather that as of 2 years ago there was no equivalent of SQL Group By.

我不知道是否有过对这个的发展吗?我有上千条记录,我需要通过名称拉下的所有记录在降值等级顺序,然后将它们分组。

I'm wondering if there have been any developments on this? I have thousands of records and I need to pull down all records in descending order of a value rating and then group them by name.

如果这不是可在present也许有人会提出一些我可以工作,而不是上

If this isn't available at present perhaps someone could suggest something I could work on instead.

问候。

推荐答案

请参见 https://开头解析.COM /文档/ android_guide#查询,基本,你可以有二次分选关键,这将是按组当量。

See https://parse.com/docs/android_guide#queries-basic , you can have secondary sorting key, which would be equivalent of "group by".

query.orderByDescending("rating");
query.addAscendingOrder("name");

能为你做的伎俩。

could do the trick for you .

这篇关于Parse.com相当于集团通过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆