我找不到关于"compactionstats"的文档:
在使用时nodetool compactionstats,completed和total列上的数值是什么意思?我的列族的总数据大小约为360 GB,但我的压缩状态显示:
pending tasks: 7
compaction type keyspace column family completed total unit progress
Compaction Test Message 161257707087 2475323941809 bytes 6.51%
Run Code Online (Sandbox Code Playgroud)
虽然我看到"完成"缓慢增加(也是进展;-).
但这个"总计"是如何计算出来的?当我只有360 GB的数据时,为什么它是2.5 TB?
当定义要返回的字段时(collection.find(q, fields)),mongoDB是否(如何)支持比较字段名称(而不是值)?
例如,根据字段名称选择一系列字段,而不考虑其值。
假设文档中有以下字段(无论值是什么):
fieldA000 fieldA001 fieldA002 fieldB000 fieldB001 fieldC000 ...
Run Code Online (Sandbox Code Playgroud)
我想限制任何字段名称匹配的返回字段fieldA000 to fieldA999(无需明确定义任何字段名称)或fieldA.*(reg ex)或类似的。
PS:我目前正在评估是否可以使用 mongoDB 而不是 Cassandra,其中列范围/切片选择以非常易于使用的方式提供。