RavenDB会话> 30 [英] RavenDB Session > 30

查看:72
本文介绍了RavenDB会话> 30的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我要保存要保存的项目列表(计数> 30),则会出现错误提示

If I'm trying to save a list of items I want to save that has a count > 30 I get an error saying

最大请求数(30) 此会话已被允许 到达.乌鸦限制了 允许会话的远程呼叫 作为预警系统. 会议预计会很短 住了,乌鸦提供设施 像Load(string [] keys)一样加载 一次并批量处理多个文档 保存.

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

推荐答案

在调用Session.SaveChanges之前,调用Session.Store与每个对象一起存储.

Call Session.Store with each of your objects before you call Session.SaveChanges.

这篇关于RavenDB会话> 30的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆