<bdo id='8jxuA'></bdo><ul id='8jxuA'></ul>

      <i id='8jxuA'><tr id='8jxuA'><dt id='8jxuA'><q id='8jxuA'><span id='8jxuA'><b id='8jxuA'><form id='8jxuA'><ins id='8jxuA'></ins><ul id='8jxuA'></ul><sub id='8jxuA'></sub></form><legend id='8jxuA'></legend><bdo id='8jxuA'><pre id='8jxuA'><center id='8jxuA'></center></pre></bdo></b><th id='8jxuA'></th></span></q></dt></tr></i><div id='8jxuA'><tfoot id='8jxuA'></tfoot><dl id='8jxuA'><fieldset id='8jxuA'></fieldset></dl></div>

      1. <small id='8jxuA'></small><noframes id='8jxuA'>

        <legend id='8jxuA'><style id='8jxuA'><dir id='8jxuA'><q id='8jxuA'></q></dir></style></legend>
      2. <tfoot id='8jxuA'></tfoot>
      3. 每个 DocumentStore 的 WaitForNonStaleResults

        WaitForNonStaleResults per DocumentStore(每个 DocumentStore 的 WaitForNonStaleResults)

        <tfoot id='ZcKkQ'></tfoot>

        <small id='ZcKkQ'></small><noframes id='ZcKkQ'>

        <legend id='ZcKkQ'><style id='ZcKkQ'><dir id='ZcKkQ'><q id='ZcKkQ'></q></dir></style></legend>
            <tbody id='ZcKkQ'></tbody>
          • <i id='ZcKkQ'><tr id='ZcKkQ'><dt id='ZcKkQ'><q id='ZcKkQ'><span id='ZcKkQ'><b id='ZcKkQ'><form id='ZcKkQ'><ins id='ZcKkQ'></ins><ul id='ZcKkQ'></ul><sub id='ZcKkQ'></sub></form><legend id='ZcKkQ'></legend><bdo id='ZcKkQ'><pre id='ZcKkQ'><center id='ZcKkQ'></center></pre></bdo></b><th id='ZcKkQ'></th></span></q></dt></tr></i><div id='ZcKkQ'><tfoot id='ZcKkQ'></tfoot><dl id='ZcKkQ'><fieldset id='ZcKkQ'></fieldset></dl></div>

                  <bdo id='ZcKkQ'></bdo><ul id='ZcKkQ'></ul>

                  本文介绍了每个 DocumentStore 的 WaitForNonStaleResults的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有什么方法可以告诉 RavenDb 对某些 DocumentStore 或 DocumentSession 的所有查询使用 WaitForNonStaleResults 模式?

                  Is there any way to tell RavenDb to use WaitForNonStaleResults mode for all queries of some DocumentStore or DocumentSession?

                  推荐答案

                  您可以在 DocumentStore 或 Session 级别使用 DefaultQueryingConsistency = ConsistencyOptions.QueryYourWrites.

                  You can use DefaultQueryingConsistency = ConsistencyOptions.QueryYourWrites at the DocumentStore or Session level.

                  文档存储:

                  IDocumentStore store = new DocumentStore {
                      Url = "http://127.0.0.1:8080",
                      DefaultDatabase = "DBNAME",
                      Conventions = {
                          DefaultQueryingConsistency = ConsistencyOptions.QueryYourWrites
                      }
                  }.Initialize();
                  

                  会话:

                  session.Advanced.Conventions.DefaultQueryingConsistency = 
                      ConsistencyOptions.QueryYourWrites;
                  

                  请记住,此机制不适用于 Map-Reduce 索引

                  您可以在下面查看 Matt 的对此事的评论

                  You can check Matt's comments on this matter below

                  这篇关于每个 DocumentStore 的 WaitForNonStaleResults的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  How can I force the PropertyGrid to show a custom dialog for a specific property?(如何强制 PropertyGrid 显示特定属性的自定义对话框?)
                  Associate attribute with code generated property in .net(将属性与 .net 中的代码生成属性相关联)
                  Can you omit the parenthesis from attributes with no params?(您可以省略没有参数的属性中的括号吗?)
                  How do I get the XMLSerializer to add namespaces to attributes in nested objects?(如何让 XMLSerializer 将命名空间添加到嵌套对象中的属性?)

                    • <bdo id='IMbOe'></bdo><ul id='IMbOe'></ul>
                      <i id='IMbOe'><tr id='IMbOe'><dt id='IMbOe'><q id='IMbOe'><span id='IMbOe'><b id='IMbOe'><form id='IMbOe'><ins id='IMbOe'></ins><ul id='IMbOe'></ul><sub id='IMbOe'></sub></form><legend id='IMbOe'></legend><bdo id='IMbOe'><pre id='IMbOe'><center id='IMbOe'></center></pre></bdo></b><th id='IMbOe'></th></span></q></dt></tr></i><div id='IMbOe'><tfoot id='IMbOe'></tfoot><dl id='IMbOe'><fieldset id='IMbOe'></fieldset></dl></div>

                      <legend id='IMbOe'><style id='IMbOe'><dir id='IMbOe'><q id='IMbOe'></q></dir></style></legend>
                        <tbody id='IMbOe'></tbody>
                      • <tfoot id='IMbOe'></tfoot>

                            <small id='IMbOe'></small><noframes id='IMbOe'>