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

With many online free tutorials in place, does one ever need to hire a mentor to learn a new Technology? if yes, why? i am in the process of learning MVC, linq, and WCF and by far using online resources. if anyone out there is interested in learning, can join me. we can learn together.
definitely,you need to mentor .Because online courses doesn't train in the aspect of real time project experience.But a good trainer who works in a IT will have exposure to all the phases of development...
Ranganath
What is the difference between asp.net and c#.net?
1.Csharp is best known as C#. 2.C# is a programming language used when developing Asp.net. 3.The C# programming language is specially designed for easy use in practically any purpose. 4.Asp.net...
Aadarsh
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
How MVC works in ASP,net?
The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to...
Mukul
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

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

Ask a Question

Related Lessons

Difference between Abstract Class and Interface
This is probably one of the most commonly asked questions in any job interview for .Net. Before we look into the differences between the two lets find out the main features. Abstract Class By definition...

Difference Between View Bag And View Data In Mvc
ViewData belongs to dictionary class whereas view bag is the dynamic object. i.e., dictionary class create objects that validate data for viewdata whereas dynamic object validates data for ViewBag.Also,The...

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

Garbage collector [ GC ] in .NET framework
Garbage collector is responsible for the "automatic memory management - AMM" in .NET framework. Garbage collector is one of the properties of .NET framework components CLR . Why there is a need of "Memory...

Raga Deepthi G.

1 0
0

Angular-2 Developer Training Program Syllabus
Angular2 Developer Training Program Syllabus: Introduction to Angular2. Why Angular2. Angular2 Features: Components, Services and Typescript. Angular2 Components: Templates, Modules, Services...

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