[ https://issues.apache.org/jira/browse/RYA-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16114998#comment-16114998 ]
ASF GitHub Bot commented on RYA-313: ------------------------------------ Github user isper3at commented on a diff in the pull request: https://github.com/apache/incubator-rya/pull/196#discussion_r131490821 --- Diff: dao/mongodb.rya/src/main/java/org/apache/rya/mongodb/MongoDBQueryEngine.java --- @@ -118,7 +124,8 @@ public MongoDBRdfConfiguration getConf() { } // TODO not sure what to do about regex ranges? - final RyaStatementBindingSetCursorIterator iterator = new RyaStatementBindingSetCursorIterator(coll, rangeMap, strategy, conf.getAuthorizations()); + final RyaStatementBindingSetCursorIterator iterator = new RyaStatementBindingSetCursorIterator( + getCollection(conf), rangeMap, strategy, conf.getAuthorizations()); --- End diff -- i think other parts of this class use the legacy DBCollection coll still > Rya Mongo Blows up on Large result sets > --------------------------------------- > > Key: RYA-313 > URL: https://issues.apache.org/jira/browse/RYA-313 > Project: Rya > Issue Type: Bug > Components: dao > Affects Versions: 3.2.10 > Environment: Mongo DB with Rya 3.2.11-SNAPSHOT with a lot of data in > Rya > Reporter: Aaron Mihalik > Assignee: Andrew Smith > > Simple queries that return a lot of results fail because mongo is trying to > send all of the results back at once. For instance, if I have a lot of data > and run something like: > {noformat} > SELECT * WHERE > { > ?s a ?t. > } > {noformat} > I will get this exception. > {noformat} > Caused by: com.mongodb.MongoCommandException: Command failed with error > 16389: 'aggregation result exceeds maximum document size (16MB)' on server > localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "aggregation > result exceeds maximum document size (16MB)", "code" : 16389 } > {noformat} > I think we need to toss in a "AggregationOptions with Batch = 1000", but I > couldn't get that to work immediately. Somebody with more mongo experience > needs to look at this. > [Here is the line of > code|https://github.com/apache/incubator-rya/blob/master/dao/mongodb.rya/src/main/java/org/apache/rya/mongodb/iter/RyaStatementBindingSetCursorIterator.java#L114] -- This message was sent by Atlassian JIRA (v6.4.14#64029)