[JAVA-1588] Support cursor in listCollections and listIndexes commands Created: 08/Dec/14  Updated: 27/May/22  Resolved: 23/Dec/14

Status: Closed
Project: Java Driver
Component/s: Command Operations
Affects Version/s: None
Fix Version/s: 2.13.0, 3.0.0

Type: Improvement Priority: Major - P3
Reporter: Barrie Segal Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-14707 listCollections and listIndexes comma... Closed
is depended on by DRIVERS-197 Support cursor in listCollections and... Closed
Related
Server Compat: 3.0

 Description   

In order to support listing collections of databases with a large number of collections, the listCollections command that was introduced in 2.8 will need to be able to return a cursor. Otherwise, it will run into the 16mb document size limit.



 Comments   
Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Replaced ListCollectionNamesOperation with ListCollectionsOperation that returns a cursor

JAVA-1588
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/bd9b853de1affe8a7503b583fd040b2605bc89fe

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: ListIndexOperation now returns a cursor instead of a list

JAVA-1588
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/dea04cd3790d1482792283bfabb6863dca901559

Comment by Jeffrey Yemin [ 29/Jan/15 ]

2.13.0 has been released. Closing issue.

Comment by Githook User [ 23/Dec/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Replaced ListCollectionNamesOperation with ListCollectionsOperation that returns a cursor

JAVA-1588
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/bd9b853de1affe8a7503b583fd040b2605bc89fe

Comment by Githook User [ 23/Dec/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: ListIndexOperation now returns a cursor instead of a list

JAVA-1588
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/dea04cd3790d1482792283bfabb6863dca901559

Comment by Githook User [ 16/Dec/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Helpers for listCollections and listIndexes now handle responses containing cursor documents

JAVA-1588
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/50353fc72f3174f57b8f62ea9d5404a01aaaf8de

Comment by Githook User [ 16/Dec/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: QueryResultIterator now relies on the namespace field in a cursor document instead of getting the namespace via the constructor.

JAVA-1588
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/fe26cc078e0c2ee29e5147206d15268c1a61463f

Generated at Thu Feb 08 08:55:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.