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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Mar 28, 2023, 12:00 AM EDT
There are several approaches you can take to improve the performance of your ASP.NET page with 2 Lacs records
Naimish MakwanaRank #324 · 7.7K reputationPosted Mar 27, 2023, 11:28 PM EDT
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
Sachin SinghRank #66 · 26.2K reputationPosted Mar 28, 2023, 6:33 AM EDT
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?
Jaya PrakashRank #1,293 · 1.3K reputationPosted Mar 27, 2023, 1:11 AM EDT
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#