[JAVA-811] DBCursor.skip() & .limit() are limited to integer Created: 22/Apr/13 Updated: 22/Apr/13 Resolved: 22/Apr/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
At the moment skip and limit setters take int rather than long. This makes it impossible to correctly operate on a mongo collection with number of records exceeding 2.1 Bln. |
| Comments |
| Comment by Hannes Magnusson [ 22/Apr/13 ] |
|
The wireprotocol actually defines these as int32 int32 numberToSkip; // number of documents to skip http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/ |