[CSHARP-24] Make Cursors reusable Created: 09/Mar/10 Updated: 19/Oct/16 Resolved: 14/May/10 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Sam Corder | Assignee: | Steve Wagner |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Using some of the Linq extensions like Count() will exhaust the cursor and cause unpredictable behavior if it is then used in a foreach loop. |
| Comments |
| Comment by Steve Wagner [ 14/May/10 ] |
|
Fixed for next stable version. Development code can be found here. http://github.com/lanwin/mongodb-csharp/tree/typedcollections |
| Comment by Serge Knecht [ 05/May/10 ] |
|
Problem summary: Example : First time the following is done. cursor.Documents.Count() will return 677. Reason: BUG: Suggestion to fix: |
| Comment by Steve Wagner [ 12/Apr/10 ] |
|
What exactly that means? |