gpt4 book ai didi

.net - RavenDb QueryYourWrites 和 Map/Reduce 索引

转载 作者:行者123 更新时间:2023-12-04 11:58:08 25 4
gpt4 key购买 nike

我在之前的 question 中得到了以下评论关于 RavenDb:

One thing to note, QueryYourWrites doesn't work with Map/Reduce indexes. For these you have to use WaitForNonStaleResults..()



这是什么意思?我认为 RavenDb 中的所有索引都是 Map/Reduce 索引......在哪些情况下 QueryYourWrites 选项有效?

最佳答案

对不起,我写了那个评论,我不是很清楚。

RavenDB 索引总是需要有一个 Map 部分,但 Reduce 是可选的。所以如果你不指定Reduce函数,它就不是Map/Reduce索引,它只是一个Map索引。

这就是我试图做出的区分。

由于 QueryYourWrites 使用的机制,它不适用于 Map/Reduce 索引。但它适用于仅 Map 索引。

我希望这更清楚?

关于.net - RavenDb QueryYourWrites 和 Map/Reduce 索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8571349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com