google-app-engine - 用于锯齿形合并连接的大O?

标签 google-app-engine bigtable

zig-zag 合并连接算法的 Big O 是什么?

GAE 的 Big Table 使用它,他们在这些视频中详细介绍了它:

enter image description here

我问的原因是,如果我正确理解这个例子,对于包含很多仅与其中之一匹配的集合,Big O 将接近 O(n),但对于两者(或本例中的全部三个) )。

最佳答案

阅读Performance索引选择文章部分:

The actual performance depends on the shape of the data. Specifically, the average number of entities considered for each result returned is O(S/R). This indicates that poor performance is likely when many entities match each scan, but few entities match the query as a whole (R is small and S is large).

正如文章所述,这只影响正常索引。如果你想要 O(log n) 速度,你应该定义一个复合索引。

关于google-app-engine - 用于锯齿形合并连接的大O?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16472651/

相关文章:

hadoop - 这是对 HBase 的合适(或可能)使用吗?

database - Google 的 Bigtable 与关系数据库

android - Google App Engine with Android - 在真实设备上测试端点

python - webapp2 + jinja2 : How can i get uri_for() working in jinja2-views

java - Google App Engine 保存 toString() 值,而不是文本

避免热点的 Bigtable 行键方案?

nosql - Hadoop Map/Reduce - 简单使用示例来执行以下操作

google-app-engine - GAE 上端点 V2 的版本控制

android - 端点库生成后 App Engine 连接的 android 项目中的包名称错误

bigtable - Bigtable 如何处理 Tablet Server 故障?