Data Controls :: Binding Lacs (large Number) Of Records In Gridview Makes Loading Slow?
Mar 18, 2013
I have a user control that is common to the application. It searchs for lakhs of Items in one go from the db and I set the selected Items in a list in a session to pass on to the pages that use it. Hence making the application a tad slower. The gridview that contains the Items should have sorting, page indexing. What according to u,I should do to enhance the application's performance ?
I want to insert a large amount( approx 7000 records) of data into a table, My scenarios is that i need to check whether the record already exists then it will not insert it. Currently i am using a stored procedure for this which gets called for each record.
IF EXISTS(SELECT 'True' FROM MYTABLE WHERE ID = @ID) BEGIN
--This means it exists, return it to ASP and tell us
SELECT 'This record already exists!' END ELSE BEGIN
--This means the record isn't in there already, let's go ahead and add it
SELECT 'Record Added' IF EXISTS(SELECT 'True' FROM [Aadil].[dbo].[SharePointSitesData] WHERE ID <> @ID)
I am using gridview. In which i m entering some value in textbox in Gridview.According to that value, i m generating datatable and binding it to the Gridview(Child Gridview).But when i m doing this, the performance of the page is very slow. How do i improve the performance.
I have 65 columns in the grid, if the columns are reduced to 20 then the speed when accessing from client is more or less similar to that accessing from web browser. Does it mean that all this performance issue is due to the data only ???
I have an ASP.net VB Web app I'm working on that has a requirement to provide a list of all our component part numbers to our engineers for selection into a custom Bill of Materials for reworking of an assembly. The list of part numbers is currently generated from a stored proc in our MRP systems/SQL database. The number of records being generated is slightly over 39K part numbers.
Although the SP only takes a few seconds to generate the data the web page is taking a couple of minutes to load, primarily because of the time to fill the control presenting the records to the engineers. I've bound the data to a combobox control to the engineer. They want to be able to type the first few characters of the part number if they know it and have the list filtered or be able to just scroll the data to find the part they are looking for.
I've read elsewhere that they may be a way to only populate a certain quantity of records rather than all 39K then filter based on the users actions. Unfortunately the discussions about doing this didn't provide any examples, references, etc.
My questions are these...
Is there a better way to handle this quantity of records than a stored proc and combobox? A
ny examples of a method to populate a certain number of records then filter based on user action?
I follow the following link for add dropdownlist in gridview.Adding Dynamic Rows in GridView with DropDownLists in ASP.Net..In this template field the drop down list contain 500 items how can i search the paticular item
I have a requirement like need to display 5000+ records in gridview. So, I created scrollable div with gridview init and displaying 200 records per page. The website is running very slow because eveytime when user click on paging, it retrieving all the records from the database. I need to increase the website performance. I heard about a concept Girdview lazy loading but i don't know how to implement. I am looking for a solution like records should display in gridview when ever user scroll the bar down. How to do the gridview lazy loading.
I am having some issues with the performance. I am binding a Gridview with around 200 records and it is taking a long time. At one time I only display 10 records on the page, but I bind all the 200 records.
Generally what is the number of records that should be bound to a gridview ?
I am trying to add a label in my gridview that counts the number of records that are being displayed as well as the total number of records found via the datasource. and i want this label to be displayed in the pager template of the gridview i.e. at the bottom.
I have the following code:
which i run in the rowdatabound method of the gridview. but when i run it it comes up with an error saying "null reference exception handles by code".i think the error lies in not being able to count the total number of rows in the sqldatasource in the int variable intTotalRecords. How do i go about counting the number of rows in the datasource that i am trying to pass in?
I am working on gridview, i want to add the total number of records in the gridview footer which are returned by the query, and also want to see the curretly showing records, suppose if we have 50 records i want to display them as viewing 1-10 of 50 records. i need to display like this of similar to this format
How to display the total number of records returned in a GridView in asp.net? I want to display it in a label or if possible next to the page index in GridView... And how to provide a select option in a GridView to select all records (It should select not only the record shown in one page in GridView but all records that were returned to the GridView) or one by one record that was returned? These things (for e.g., Number of selected rows) should also be displayed in the label which I mentioned before.
i hav a gridview ... now i need to add certain number of rows... say 5 rows .... which would b blank .. the rows consist of itemtemplate of textboxes.. here is the grid ...
now i am binding this gridview with certain data say :
now the problem is if the row contains 2 data originally ... then it alwz shows up with only two rows with binded data... but what i want is 2 (databinded rows ) + 5 (empty rows with textbox ) = 7 grid view rows .... now how to do it ... after i hav binded the textbox with data already....with some empty columns corresponding to the above code ?
I was wondering if anyone could tell me why any .aspx page that I drop an Ajax HTML editor on will then become painfully slow to load and update.And more importantly is there anything that can be done about it to speed it up?I am using VS2010 and targeting ASP.Net 4.0 web application and I am using the AjaxControlToolkit version 4.1.40412.2.
I got the following datalist populated with 12 images a page average size is 75kb.If i move the scrollbar in internet explorer up and down it goes very laggy and stuttering, while firefox has noproblem at al fast and smooth. If i remove the images there is noproblem. if i disable the setting smooth scrolling in ie it's a little better but still not good enough. I can't seem to find a way to get this right is there some kind of script or am i doing something wrong. Or maby do i have to put the datalist in a user control?
I am Using OboutGrid to Display the data in my Webforms..this is cool when am binding small data..but when am binding huge data it takes more time to display the records rather than normal datagrid. How can i improve the performance..
In my database when I fire query it takes 40 secs on 1 crore data, similar when I use join with other table then it take more time. I have taken care non cluster index such thing. But still I want to optimize my query, what other thing I need to take like buffer, disk size etc. I am not sure on this area.
I am using a gridview with inbuilt paging whose data source is an objectdatasource. i simply need to show the total no of records present in gridview in a label. when i use gridview1.rows.count then it will return only the total no of records present in that page. Is there a way to find out the total number of records present in gridview or in objectdatasource.
I'm facing a problem in our current running application. There is a table in database which has 67 columns,among these 18 columns are nvarchar(max) datatype and contains 30K records. Problem is now that SELECT * FROM myTable it takes around 3 to 4 seconds. Which is degrading our application's performance.