How does DataBind affect memory usage?

Authetmup

New Member
I have a DataPager associated with a ListView to control paging. The DataSource for the ListView can be an array of 30,000 rows of data (if I save each page to the _VIEWSTATE, it would be around 150K, and I have around 800 pages of data). And by the way, EnableViewState is set to false. Every time I switch between pages, I need to do a DataBind. When I run this from source on my computer, it's really fast to switch between pages. However, when I deploy this on a server (with similar specs as my computer) it takes very long to switch between pages. Does anyone know if DataBind() needs to use much memory to process all the rows for each DataBind()? This is my suspicion because there are many sites on the server and my site doesn't have enough RAM to process all the rows.Or any suggestion on why DataBind() takes so long would be appreciated!
 
Back
Top