I have 2 Lacs of records im C# asp .net i am using for that Sql Index and Pagination but the pge is slow how i resolve the issue
Loading
I have 2 Lacs of records im C# asp .net i am using for that Sql Index and Pagination but the pge is slow how i resolve the issue
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Mar 28, 2023, 10:33 AM
How much time does you query take ? if the query is taking 4-6 sec but when it is called from c# app then the page is taking more than 15 sec time to load, it would mean, there is UI loading issue?
what controls are you using to load data and how much data at a time?
Amit MohantyPosted Mar 28, 2023, 4:00 AM
There are several approaches you can take to improve the performance of your ASP.NET page with 2 Lacs records
Naimish MakwanaPosted Mar 28, 2023, 3:28 AM
Hello Bishnu,
There are several possible ways to improve the performance of your C# ASP.NET application with SQL Index and Pagination:
Optimize your SQL queries: Check your SQL queries and ensure that you are using the appropriate indexes to speed up the data retrieval process. Also, make sure that you are not retrieving more data than you need.
Use caching: Implement caching to store frequently accessed data in memory, so that it can be quickly retrieved without having to query the database every time.
Use asynchronous programming: Implement asynchronous programming to improve the responsiveness of your application, particularly when dealing with long-running operations like database queries.
Implement paging at the database level: Consider using database-specific features like OFFSET-FETCH or ROW_NUMBER() to implement paging at the database level, rather than relying on application-level paging.
Use a data access layer: Implement a data access layer (DAL) to abstract away the database queries and make it easier to manage and optimize your database interactions.
Consider upgrading your hardware: If your application is running on a slow or underpowered server, consider upgrading your hardware to improve performance.
Use a content delivery network (CDN): If your application includes large media files, consider using a CDN to distribute the content and improve the speed of delivery.
Use a profiler: Use a profiler tool to identify performance bottlenecks in your application and optimize your code accordingly.
Thanks
Naimish Makwana
Jaya PrakashPosted Mar 27, 2023, 5:11 AM
pls refer through this link
https://www.partech.nl/en/publications/2022/02/reasons-why-your-aspnet-server-could-be-slow-and-how-to-improve-its-performance#