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

how to sorting the file and folders in grid view with Div Express third peaty controller Note: File and folders are sorting separately.
Third party controller have their own shorting method ...please clear your question ..
Mallikarjuna
Suggest some good .net mvc training in BTM .
hi contact us for more details.
Pawan
Is developing a website in .net easy or in php?
In php developing an app is easy.
Nithish REDDY
what are the user defined functions in SQL Server
User Defined Functions play an important role in SQL Server. User Defined functions can be used to perform a complex logic, can accept parameters and return data. Many a times we have to write complex...
Mallikarjuna
I am new to ASP.Net MVC.I need to learn ASP.Net MVC .I need an Online training course for that.Kindly suggest a good online training website for ASP.Net MVC
Hi Shubhatra.. Many materials are available online for ASP.NET MVC course. You can find many tutorials videos. Try to make small projects using those tutorials,not just read or watch them. Remember best...
Shubhabrata

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

Ask a Question

Related Lessons

Extension method In C#
Introduction. Hello Guys, In this article, I will explain what is extension method and why and where we should use this. Let’s understand the term extension means we are going to create something...

Benefits of Angular JS over traditional JavaScript and jquery
1. Easy designing web pages 2. Code reusability 3. Client validations more optimized and faster . 4. MVC architecture finds suitable interface to accept server responses Back in more customized manner .

Service-Level Agreement (SLA) Definition
A service-level agreement (SLA) is a contract between a service provider and its internal or external customers that documents what services the provider will furnish. SLAs originated with network service...
M

Mohammad Shafi

0 0
0

Export To Excel using StringBuilder in ASP.net MVC C#
public ActionResult Export() { StringBuilder sb = new StringBuilder(); //static file name, can be changes as per requirement string sFileName = "filename.xls"; //Bind...
M

Mohammad Shafi

1 0
1

Difference between App services,Cloud Service and Virtual Machine in Microsoft Azure
App Services :When you want to deploy your application to Azure IIS conatainers without requiring any control,web apps should be preferred.It's a part of Azure Paas.1) When you need IIS.2) Satisfy with...

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