Dropdownlist Performance issue while binding thousand records from Database Asp.net
Guest post :I bounded dropdownlist from database, and this database has more than 3000 data records. And when i run project its really slow. can i do it somehow to be faster?. I bound all data into dropdown because i need to create search in database by customer and i bounded all customers into a dropdownlist and when i load page first it loads slow then when i want to open dropdown list is also slow when i click on search also slow.
can i do it somehow to be faster?
Solution :
- We can make dropdownlist filterable on character you enter, make ajax call and send parameter as character and return result can bind to dropdown. Use auto complete Jquery using ajax call return json. Making ajax call will help solve this problem and will prevent killing the page due to delay in page loading
- We can use web cache for this, get tha data from data base and store in browser database at the time of page or view initialization using ajax or angular js, it will reduce burden of loading data from database as well as making more fast .
- Using devexpress we can paging the results
Better use textfield with suggestions instead of Dropdownlist.
No comments:
Post a Comment