简体   繁体   English

在ArangoDb中,集​​合的选择会影响性能吗?

[英]In ArangoDb, does choice of collection impact performance?

I was wondering. 我在想。

You can throw anything in any collection in Arango. 您可以在Arango中的任何集合中扔东西。 I can imagine however that placing objects with similar attributes in the same collection has impact on indexing, which impacts performance. 但是我可以想象,将具有相似属性的对象放在同一集合中会影响索引编制,从而影响性能。

Is that true or shouldn't I worry about performance when creating collections? 是真的,还是我不应该担心创建收藏集时的性能?

tnx, Frank tnx,弗兰克

You do not need to worry about performance and collections so much. 您无需太担心性能和集合。

You design your performance largely by indexing your data according to the planned queries and choosing the proper index for the above. 您可以根据计划的查询为数据建立索引并为上述内容选择合适的索引来很大程度上设计性能。 But your query performance are going to again be hugely affected by filtering the data before sorting and vice versa. 但是,在排序之前对数据进行过滤会再次极大地影响您的查询性能,反之亦然。

This is all as long as you are on a single server instance. 只要您在单个服务器实例上就可以了。 Once you are looking at sharding your data over many cluster nodes, you can again boost or impair the performance. 一旦考虑在多个群集节点上共享数据,就可以再次提高或削弱性能。

tldr: Don't worry about collections before you have worried about your queries and your indexes. tldr:在担心查询和索引之前,不必担心集合。

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

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