简体   繁体   English

Parse.com:“ createdAt”的降序是否可扩展?

[英]Parse.com: is descending order on “createdAt” Scalable?

I am trying to get the most recent top 10 items from a Table in Parse. 我正在尝试从Parse中的表中获取最新的前10个项目。 Let's say there are more than 1M items in that Table, will descending order on "createdAt" Scalable? 假设该表中有超过1M个项目,那么“ createdAt”可扩展性的降序是否可以?

Basically, you need to descending order on "createdAt" and get the top 10 items. 基本上,您需要对“ createdAt”进行降序排列并获得前10个项目。 Will this code run slowly for large amount of items (from 100K to a few Million)? 对于大量项目(从100K到几百万),此代码是否会运行缓慢?

So Far I am very uncertain about parse.com's performance and scalability for ordering large amount of items. 到目前为止,我对parse.com的性能和可伸缩性(用于订购大量物品)不确定。 I know for large amount of items, their ordering function will be slow. 我知道对于大量物品,其订购功能将很慢。 I am just not sure about the ordering on "createdAt". 我只是不确定“ createdAt”的顺序。

Thanks 谢谢

Parse uses mongodb, and it very likely indexes createdAt by default. 解析使用mongodb,默认情况下很可能会索引createdAt。 If not, it very likely will index createdAt upon noticing your app's call pattern . 如果不是这样,很可能会在注意到应用程序的调用模式时对createdAt进行索引。 Speed for top N (where N<100) should be very quick, relatively independently of table size. 前N个(N <100)的速度应该非常快,相对独立于表的大小。

Note that this is a much weaker statement than "parse is the best choice for 1M row tables". 请注意,这比“分析是1M行表的最佳选择”要弱得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM