1

我最近将 RavenDB 从 build 573 升级到 960。保存文档时速度明显变慢。我在升级时所做的唯一更改是将这一行添加到 Raven.Server.exe.config:

<add key="Raven/Authorization/Windows/RequiredUsers" value="d1\PrestoDatabaseUser;d2\userName"/>

好吧,我还将 AnonymousAccess 从 All 更改为 Get。

<add key="Raven/AnonymousAccess" value="Get"/>
  1. 构建 960 是否存在运行缓慢的问题?
  2. 升级到 build 960 时,除了替换二进制文件之外,还有什么新的事情要做吗?
  3. 授权(如上所示)是否会导致 RavenDB 运行更慢?
  4. 还有其他想法吗?

编辑 - 这工作

我刚试过这个(只有第三行是新的):

documentStore.ConnectionStringName = "RavenDb";
documentStore.Initialize();
documentStore.JsonRequestFactory.ConfigureRequest += (sender, e) => ((HttpWebRequest)e.Request).PreAuthenticate = true;
4

1 回答 1

3

This shouldn't matter, no. What is likely to have happened is that you are now actually doing authentication when saving. Use:

docStore.JsonRequestFactory.ConfigureRequest += (sender, e) => ((HttpWebRequest)e.Request).PreAuthenticate = true;

And see if that helps

于 2012-11-30T12:41:49.813 回答