© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
Baldur, Creator of GoConnect.dev

❔ Memory and performance on big queries LINQ & EF Core

Hi guys, I have a question, I need to make big queries to the db for pagination, however every single request takes a lot of time and I am not sure if for such case it is better to create stored procedure or is there anything else I can do to improve the queries.

Do you guys have some workaround for this?
Here is the gist https://gist.github.com/HeyBaldur/ca9d98ca61c8dffae60c0e72171bfb51
We are also talking about the amount of records are more than 5000
image.png
Gist
Pagination Performance
GitHub Gist: instantly share code, notes, and snippets.
Pagination Performance
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dynamic EF Core LINQ Queries for API Consumption
C#CC# / help
7mo ago
❔ EF Core LINQ translation document
C#CC# / help
3y ago
❔ Help with EF Core Linq statement
C#CC# / help
4y ago