If have more than 10 lac records in a table. Can any one tell how I can use custom paging in this scenario. Our motive to achieve records within 1-2 sec.

Asked by Last Modified  

13 Answers

Learn .Net

Follow 0
Answer

Please enter your answer

Experienced .NET Tech Lead, Guiding Developers to .NET Mastery

When you have such huge data(10 lac) client side pagination will kill your application and eventually will slow down. As mentioned above, server side pagination will be better approach. on demand click, you need to retrieve records(N) based on your demand. Pagination, number of records to be fetched...
read more
When you have such huge data(10 lac) client side pagination will kill your application and eventually will slow down. As mentioned above, server side pagination will be better approach. on demand click, you need to retrieve records(N) based on your demand. Pagination, number of records to be fetched logic can be done in SP level which will enhance performance. read less
Comments

Please follow this link https://msdn.microsoft.com/en-us/library/bb445504.aspx
Comments

Trainer

How about data virtualization? I am not sure like how far it helps in web applications. I have used in windows app.
Comments

Experience Professional With 13 Years in It Industry

while passing the request to data base just pass the start page index and end page index to the SP , don't get all the record in one go and store it in data set or some other object.
Comments

IT Professional Trainer with 9 years of experience in IT Industry

Client Side vs Server Side Pagination This is the time to compare both the scenarios and implementations. Client side pagination Consider when there is no possibility for server side pagination Requires State Management to reduce the DB calls. Means store the result sets in cache, sessions,...
read more
Client Side vs Server Side Pagination This is the time to compare both the scenarios and implementations. Client side pagination Consider when there is no possibility for server side pagination Requires State Management to reduce the DB calls. Means store the result sets in cache, sessions, viewstate and static objects. Memory consumption is very high Network speed and latency will be mattered On other hand we have advantages of Client Side Pagination is you can fetch all the results once and you perform operation on that data and need not to connect to DB again and again Everything will be available to your application so will be very useful to compare and match against the records with new ones Consider using only when the records sets are needed for application level Serve side pagination We can overcome the network issues Very fast compared to all the methods Requires minimum effort Very much important when you are working on very high traffic applications Can not implement cache or local storage for application Consider using when your application performance is very poor read less
Comments

Trainer

Procedure level paging implement
Comments

IT Trainer

Custom paging is suitable when working with large amount of data. It improves the performance by retrieving only required data need to be displayed in the current page requested by the user. You need to work with following variables: ? TotalRecords : The total number of records to be displayed in...
read more
Custom paging is suitable when working with large amount of data. It improves the performance by retrieving only required data need to be displayed in the current page requested by the user. You need to work with following variables: ? TotalRecords : The total number of records to be displayed in the UI. ? PageSize : Number of records in a page. ? CurrentPage : This is the page is being navigated. Initialize it with zero. ? StartFromIndex : Starting index of the first row displayed in the current page. It is calculated by CurrentPage * PageSize So the records are displayed in a page from StartFromIndex and limit to the PageSize. For example,take PageSize = 10 , TotalRecords = 100 if you are in page 2 then StartFromIndex = 1 * 10 and the index of the last record would be StartFromIndex + PageSize – 1 i.e 19. Now let us go step by step. 1. Get the total number of records being paged through. Following query can be used Selecte count(*) from table_name Add a method in the DAL and BAL that returns this information. Create a method TotalNumberOfRecords() that executes the above query. 2. Add a stored procedure for paging through the records to fetch the required records from database. It should accept two input parameters @ StartFromIndex and @ PageSize. SQL Server’s ROW_NUMBER() keyword can be used to fetch the required rows. It could be done easily if there is already a column in the database which serves as a row index. 3. Add a method in the DAL and BAL that returns this information. There are number of ways to implement the custom paging. Caching can be used also. It is very easy to implement custom paging if you are using AngularJs filter. Hope you have got some idea. read less
Comments

Fetch records on each click of page or use asyn calls to keep on loading data in backend without making ui slow
Comments

U require to be trained for knowing it.
Comments

.NET Trainer

Can make use of on Demand load.
Comments

View 11 more Answers

Related Questions

How to use .net mvc?
visual studio 2012 or after that version supports mvc application, but you should also need to understand razor view, html5, linq for working on mvc.
Jayant

Hi,

I have asp.net project with sql connection.I want connect database with asp.net and run the project and web config file there

In web.config: <connectionStrings> <add name="ConnectionString" connectionString="Data Source=192.168.1.25;Initial Catalog=Login;Persist Security Info=True;User ID=sa;Password=example.com" providerName="System.Data.SqlClient"...
Fathima
How can I learn ASP.NET in a month?
filter the basic concepts which will useful for the interview point and we have to learn first...if you learn priority bases it will useful for you and every time you learn what is the logic we fallow and where i can use it .
Madhavan
0 0
5
i am applying for asp.net but i am not get any response.
You can contact me through WhatsApp:, I am sure that I will take care of you on this subject.
Om

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Working with Delegates & Events in .NET
Events & Delegates A delegate is a reference type derived from the System.Delegate class which can be used to call methods of same matching signature.As you all know signature of a method is defined...

ASP.NET - Introduction
ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required to build up robust web applications for PC, as well as mobile...

CLR [ Common Language Runtime ] and it's properties
CLR is one of the components of the .NET framework which provides an environment to execute the .NET code or the managed code. , CLR helps in converting the MSIL/CIL code into native code and running...
R

Raga Deepthi G.

0 0
0

Why a function in C# requires "Return type"??
- Basically , a Method is a piece of code used for the re-usability purpose. - Method is of 2 types Function and Procedure - Function is a method which returns a value to the calling place Function...
R

Raga Deepthi G.

0 0
0

Differences Between Execution Query, Execute Scalar and Execute Reader.
ExecuteNonQuery ExecuteNonQuery method will return number of rows effected with INSERT, DELETE or UPDATE operations. This ExecuteNonQuery method will be used only for insert, update and delete, Create,...

Recommended Articles

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Looking for .Net Training ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you