[CSHARP-4203] Any and AnyAsync do not have IFindFluent extensions to project and limit results. Created: 09/Jun/22 Updated: 28/Oct/23 Resolved: 14/Jun/22 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.17.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Matthew DeJonge | Assignee: | Boris Dogadov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
First, Single, and all their variants have extension methods on IFindFluent that internally call Limit. This improves performance of some queries and has no impact on the rest. Any and AnyAsync do not have similar extension methods. Because of that I have to add a projection and limit in my client code. Otherwise I would see performance impacts. It would be better if this functionality was built in. Other people using the driver wouldn't necessarily know to do this unless they look at the source code. |
| Comments |
| Comment by Boris Dogadov [ 14/Jun/22 ] |
|
Thank you for your contribution mhdejong@umich.edu! |
| Comment by Githook User [ 14/Jun/22 ] |
|
Author: {'name': 'Matthew DeJonge', 'email': 'mhdejong@umich.edu', 'username': 'mhdejonge'}Message: Co-authored-by: Matthew DeJonge <mdejonge@terryberry.com> |
| Comment by Matthew DeJonge [ 09/Jun/22 ] |