View Single Post
Old 03-21-2005, 06:59 PM   #3 (permalink)
asshopo
Insane
 
Location: Michigan
Quote:
Originally Posted by Devoid
We've recently started a .Net project at work. Unless I'm mistaken, it only transfers your 10k records across the servers once, puts it into a DataSet, and manipulates it there. It's much more efficient than moving stuff all over the place multiple times. I'm no expert, but I think that's how it works.
Ok, if that is the case, what if you query returns 10 million records instead of 10 thousand? Logically, with a dataset that size, it would make sense to return the paged data only, right?

If you are using asp.net, storing 10k records in a dataset (bound to a datagrid or something) is going to be a HUGE post back, thus making the end user wait for 10k records worth of viewstate back to the server.

See why it doesn't make sense? There has to be something I am missing and in all my research I have not been able to find it .

edit: It may be more efficient to hit the database once, but you take a huge hit on the client side. It needs to be balanced out. Thats my opinion anyways.
__________________
Patterns have a habit of repeating themselves.
asshopo is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40