couchdb视图中key的最高可能值是多少?

时间:2016-07-28 04:16:58

标签: indexing mapreduce couchdb

假设我有复合数组用于创建视图。我想用相同的第一个键查询所有对象。所以我使用new_df$TrueFalse <- ifelse(new_df$Freq > 2, as.character(new_df$Var1), "F") # Var1 Freq TrueFalse #1 American Pit Bull Terrier Mix 1 F #2 Angora Mix 1 F #3 Cairn Terrier 1 F #4 Cairn Terrier/Chihuahua Shorthair 1 F #5 Domestic Shorthair Mix 8 Domestic Shorthair Mix #6 Flat Coat Retriever Mix 1 F #7 Great Pyrenees Mix 1 F #8 Lhasa Apso/Miniature Poodle 1 F #9 Miniature Schnauzer Mix 1 F #10 Pit Bull Mix 3 Pit Bull Mix #11 Plott Hound/Boxer 1 F #12 Queensland Heeler Mix 1 F #13 Shetland Sheepdog Mix 1 F #14 Yorkshire Terrier Mix 1 F

但是我可以使用的最高端键是什么?

我可以使用?startKey=["someKey"]。但&endKey=["someKey",{}]会大于{}吗?

如果没有,那么我可以使用什么?

1 个答案:

答案 0 :(得分:5)

尽管建议使用{}的时间最长,(在研究此答案之前,我甚至理解这一点)实际上有一个新的确定的最高值&#34;。

根据latest documentation,您应该使用"\ufff0"之类的字符串。这个unicode角色应该发现自己处于任何视图模式的高端。