RavenDB 会话> 30
如果我试图保存我想要保存的项目列表,其计数 > > 30 我收到一条错误消息
最大请求数(30) 已允许此会话 达到了。 Raven限制了数量 允许会话的远程调用 作为预警系统。 预计会议时间很短 住过,Raven提供设施 像 Load(string[] keys) 一样加载 一次批量处理多个文档 保存。
我能做些什么来解决这个问题?此错误的问题是我没有加载,我正在尝试保存文档。任何想法将不胜感激。谢谢
If I'm trying to save a list of items I want to save that has a count > 30 I get an error saying
The maximum number of requests (30)
allowed for this session has been
reached. Raven limits the number of
remote calls that a session is allowed
to make as an early warning system.
Sessions are expected to be short
lived, and Raven provides facilities
like Load(string[] keys) to load
multiple documents at once and batch
saves.
What can I do to get around this? The problem with this error is I'm not loading, I'm trying to save documents. Any ideas would be appreciated. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在调用 Session.SaveChanges 之前,对每个对象调用 Session.Store。
Call Session.Store with each of your objects before you call Session.SaveChanges.
尽管不推荐,但在特殊情况下,您可以设置 Session.Advanced.MaxNumberOfRequestsPerSession 属性。
Although not recommended, in special cases, you can set the Session.Advanced.MaxNumberOfRequestsPerSession property.