UrbanPro

Learn .Net Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

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

What is xamarin, how it useful in C# coders?
1.C# is the best language for mobile app development.And With Xamarin, you write your apps entirely in C#, sharing the same code on iOS, Android, Windows, Mac and more. Anything you can do in Objective-C,...
Suresh
What is the difference between asp.net and vb.net?
asp.net is web technology that is used in building web applications and websites. Vb.net is language that is used in writing programs that are utilizing the asp.net framework Asp.net contains...
Aadarsh
How to use the software?
Which software ? Every software has different way of use.
Manish
What is .NET?
simple and short definition of .net that .net is a framework
Pavan

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

Ask a Question

Related Lessons

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...

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

C# - COLLECTIONS
Collection classes are specialized classes for data storage and retrieval. These classes provide support for stacks, queues, lists, and hash tables. Most collection classes implement the same interfaces.Collection...

What are Various Types of Exception in C#
ArgumentException, ArgumentNullException, and ArgumentOutOfRangeException. NullReferenceException, IndexOutOfRangeException, SQL exceptions Stack Overflow Exception, Invalid Castexception ArgumentException...

ASP.Net MVC 5 Error: The controller for path '/' was not found or does not implement IController
When a page, that is located inside an area, wants to access a controller that is located outside of this area (such as a shared layout page or a certain page inside a different area), the area of this...
M

Mohammad Shafi

0 0
0

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
X

Looking for .Net Training Classes?

The best tutors for .Net Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn .Net Training with the Best Tutors

The best Tutors for .Net Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more