[GODRIVER-1539] Unable to fetch more than 200k records Created: 20/Mar/20 Updated: 30/Mar/20 Resolved: 30/Mar/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | API |
| Affects Version/s: | 1.3.1 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | pradeep | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Comments |
| Comment by Divjot Arora (Inactive) [ 30/Mar/20 ] |
|
The cursor gets records from the server, so the Next method will return false when the server says the records are exhausted or there is a cursor error. You can check for errors by calling cursor.Err() after the Next method returns false. To see how many records are matched by your filter, you can try calling collection.CountDocuments() with the filter. Also, because this is likely an issue with the filter and not a driver bug, we ask that you put questions like these in the MonogDB Developer Community Forums (https://community.mongodb.com/) with the go-driver tag in order to keep Jira for bugs/features. – Divjot |
| Comment by pradeep [ 20/Mar/20 ] |
|
go.mongodb.org/mongo-driver v1.3.1 |
| Comment by pradeep [ 20/Mar/20 ] |
|
map[activityName:map[$eq:test] lastModifiedDate:map[$gt:2020-03-19 19:00:00 +0000 UTC $lt:2020-03-20 19:00:00 +0000 UTC]]
Above query using and trying to fetch more than 2m documents in a collection. getting around 200k max. |