com.mongodb.MongoException: too much data for sort() with no index. add an index or specify a smaller limit

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by organicveggie
, 10 months ago
too much data for sort() with no index. add an index or specify a smaller limit
via Google Groups by Ronnie, 1 year ago
can't find > >> >> >> >> > special index: 2d for: { foi_geom: { $within: { $box: [ [ 9, 51 ], > >> >> >> >> > [ 12, 54 ] ] } } }
via Google Groups by Shi Shei, 2 years ago
could not initialize cursor across all shards because : combinatorial limit of $in partitioning of result set exceeded @ offerStoreDE4/ s115:27018,s132:27018,s125:27018
via JIRA by kay.agahd, 1 year ago
could not initialize cursor across all shards because : combinatorial limit of $in partitioning of result set exceeded @ offerStoreDE4/ s115:27018,s132:27018,s125:27018
via Google Groups by algol, 2 years ago
socket exception [CONNECT_ERROR] for shard1/algol-cloudacc:27017
via GitHub by nsanitas
, 2 years ago
not authorized for query on local.system.namespaces
com.mongodb.MongoException: too much data for sort() with no index. add an index or specify a smaller limit
at com.mongodb.MongoException.parse(MongoException.java:82)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)
at com.mongodb.DBCursor._check(DBCursor.java:360)
at com.mongodb.DBCursor._hasNext(DBCursor.java:490)
at com.mongodb.DBCursor.hasNext(DBCursor.java:515)
at scala.collection.JavaConversions$JIteratorWrapper.hasNext(JavaConversions.scala:574)
at scala.collection.Iterator$class.foreach(Iterator.scala:660)
at scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:573)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:73)
at scala.collection.JavaConversions$JIterableWrapper.foreach(JavaConversions.scala:587)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:194)
at com.netflix.edda.mongo.MongoDatastore.load(MongoDatastore.scala:201)
at com.netflix.edda.Collection.load(Collection.scala:158)
at com.netflix.edda.Collection.initState(Collection.scala:227)
at com.netflix.edda.StateMachine.act(StateMachine.scala:149)
at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
at scala.actors.ReactorTask.run(ReactorTask.scala:33)
at scala.concurrent.forkjoin.ForkJoinPool$AdaptedRunnable.exec(ForkJoinPool.java:611)
at scala.concurrent.forkjoin.ForkJoinTask.quietlyExec(ForkJoinTask.java:422)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.mainLoop(ForkJoinWorkerThread.java:340)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:325)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.