RavenDb 报错 has already produced 16 map results for a source document 解决方案

今天发现 RAVenDb 数据库报告错误

Index ‘OrderTicketIssueReportIndex‘ has already produced 16 map results for a source document ‘ff0ff6ed-2eab-4fba-8a61-a1b85d9e14cb‘, while the allowed max number of outputs is 15 per one document. Please verify this index definition and consider a re-design of your entities or index.

经过研究, Oren Eini 给出原因和解决方案,

通过 RavenDb Studio 解决方法:

Go to Add > Max Inputs in the index edit screen.

通过代码解决的方案, 在建立索引时, 添加属性:

 1    public class OrderTicketIssueReportIndex : AbstractIndexCreationTask<Order>
 2    {
 3        public OrderTicketIssueReportIndex()
 4        {
 5            MaxIndexOutputsPerDocument = 300; // 通过这个设置, 让服务器索引每文档内子对象超过16个的默认限制
 6
 7            Map = orders =>
 8                from order in orders
 9                from itin in order.Itineraries
10                where string.IsNullOrEmpty(itin.TicketNumber) == false && itin.PurchaseIssueId.HasValue
11                let firstItin = (from i in order.Itineraries
12                                 where i.TicketNumber == itin.TicketNumber
13                                 orderby i.Flight.DepartureDate ascending
14                                 select i).FirstOrDefault()
15                let purchaseIssue = LoadDocument<PurchaseIssue>(itin.PurchaseIssueId.ToString())
16                select new OrderTicketIssueReportIndexModel
17                {
18                    PlaceOrderTime = order.PlaceOrderTime,
19                    DepartureDate      = itin.Flight.DepartureDate,

原文地址:https://www.cnblogs.com/nepton/p/9729077.html

时间: 2024-11-01 18:42:42

RavenDb 报错 has already produced 16 map results for a source document 解决方案的相关文章

关于Linux下面msyql安装后并未设置初始密码,但是登录报错“Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password: NO)”的解决方案

如上图:首先我安装mysql的时候并没有设置密码,但是就是登不进去,百度了一下,解决方案如下: 解决方案地址:http://zhidao.baidu.com/link?url=7QvuOKtfRdMTyFCsOf_6Bbb6pHGUxzyr5_afFGLiX_WAD6JJ4MCmepriWnzIo-kEAetXCLsRRhIidzxbL6zTnnJlP3HbYh2DDLZOEbOvBji 关于Linux下面msyql安装后并未设置初始密码,但是登录报错"Access denied for use

python 网络爬虫报错“UnicodeDecodeError: &#39;utf-8&#39; codec can&#39;t decode byte 0x8b in position”解决方案

Python3.x爬虫, 发现报错"UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1:invalid start byte",一直在找文件的错误,最后经过网友的提示,错误原因竟然是我的报头中有一条: "'Accept-Encoding': 'gzip, deflate'" 这一条是我从Fiddler直接复制过来的,为什么用浏览器可以正常浏览,而用Python模仿就不行呢? 综

macOS VMWare Fusion报错”找不到可以连接的有效对等进程”的解决方案

macOS VMWare Fusion报错"找不到可以连接的有效对等进程"的解决方案 我的是macOS 10,默认情况下不允许未知身份的软件安装 默认情况,如下图所示: 解决办法: sudo spctl --master-disable 这样就开启了允许安装『任何来源』的配置 这样就不会拦截软件的安装,而导致错误提示 原文地址:https://www.cnblogs.com/timxgb/p/9723152.html

关于Python脚本通过crontab调度的时候报错UnicodeEncodeError: ‘ascii’ codec can’t encode characters in positi的解决方案

昨天通过Python写了了一段脚本,然后通过crontab将脚本调起来执行,手动执行的时候没有问题的,但是通过crontab进行调度就执行报错. 报错的原因如下: Traceback (most recent call last): File "/opt/data-integration/workspace/rs_etl/pyscript/get_mobine_supplier.py", line 69, in <module> print("\u6570\u63

appium 运行报错:...... Attempt to re-install io.appium.settings without first uninstalling解决方案

报错形式: Failed to install D:\AutoTest\appium\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.settings without first uninstalling.] 解决方案: 手动卸载手机上已经安装的appium se

spring报错 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [cn/itcast/b_anno/bean.xml]; nested exception is java.lang.

这次遇到的错是在 使用注解的方式 来使用事务的时候 在配置文件中配置了 但是却没有使用 补充:没有aop相关的包也会报这个错,需要加上aop的包 解决:在配置文件中将事务有关的配置移除了然后就好了          额,看来在配置文件中的东西一定注意啊,需要使用的时候才去进行配置,不要多配置也不要少配置

(项目生成报错提示)项目文件&quot;&quot;已被重命名或已不在解决方案中

1.找到主项目,右键该项目,选择点击属性页. 2.在属性页中的"引用"中,找到不可用的项目,点击选中,再点击正文的移除即可. 3.最后若需要时,重新生成所移除的项目,再重新引用即可. 来源于:http://www.cnblogs.com/qiantuwuliang/archive/2009/07/07/1518420.html 原文地址:https://www.cnblogs.com/xiaohong520789/p/8663636.html

解决sqoop报错:java.lang.OutOfMemoryError: Java heap space

报错栈: 2017-06-15 16:24:50,449 INFO [main] org.apache.sqoop.mapreduce.db.DBRecordReader: Executing query: select "CTJX60","CTJX61","CTJX62","CTJX63","CTJX64","CTJX65","CTJX66","CTJX6

nginx报错 client intended to send too large body: 1331696 bytes

1,nginx后台error日志报错 2016/02/05 16:23:56 [error] 12024#0: *441106971 connect() failed (111: Connection refused) while connecting to upstream, client: 113.214.1.10, server: localhost, request: "GET /h5teb/ugcH5/index.htm?source=android&mall=8&TG