Click here to Skip to main content
15,914,066 members
Home / Discussions / Database
   

Database

 
GeneralDataSet Clear() performance problem Pin
Dan Bunea27-Feb-04 0:59
Dan Bunea27-Feb-04 0:59 
GeneralRe: DataSet Clear() performance problem Pin
Mike Dimmick27-Feb-04 9:38
Mike Dimmick27-Feb-04 9:38 
GeneralRe: DataSet Clear() performance problem Pin
Dan Bunea28-Feb-04 23:58
Dan Bunea28-Feb-04 23:58 
GeneralRe: DataSet Clear() performance problem Pin
Mike Dimmick29-Feb-04 7:20
Mike Dimmick29-Feb-04 7:20 
GeneralRe: DataSet Clear() performance problem Pin
Dan Bunea29-Feb-04 20:52
Dan Bunea29-Feb-04 20:52 
GeneralReturning Large DataSet Pin
Dhrubajyoti Dey26-Feb-04 20:28
Dhrubajyoti Dey26-Feb-04 20:28 
GeneralRe: Returning Large DataSet Pin
Spanky329-Feb-04 7:24
Spanky329-Feb-04 7:24 
GeneralRe: Returning Large DataSet Pin
Rob Graham2-Mar-04 16:54
Rob Graham2-Mar-04 16:54 
No offense, but this sounds like a flawed design.
I presume you are transfering the whole dataset as an object using remoting. This means the whole thing gets serialized as XML (even if you override the serialization for the dataset to binary, the contained datatable will serialize to an xml diffgram first - then to binary.) The result is a lot of memory consumed at both ends for serialization/deserialization, as well as a significant amount of time. One solution is to convert the datatable into an array or collection, serialize that as binary, then recreate the dataset at the client end.
if you need the metatdata for the dataset, not just the data, you should create a copy that has an empty datatable, and pass that, then pass the data and reconstruct at the client.
This will reduce the memory footprint by as much as an order of magnitude.

Even so, if the dataset is growing without bound, you will ultimately run out of memory. A better aproach is to transfer the data a few rows at a time, and preferably restrict the transferred data to the 'needed' rows only.
Good luck!

Power corrupts and PowerPoint corrupts absolutely. - Vint Cerf
GeneralMSSQL linked Server Pin
y_seval26-Feb-04 5:17
y_seval26-Feb-04 5:17 
GeneralRe: MSSQL linked Server Pin
Jeff Varszegi29-Feb-04 2:07
professionalJeff Varszegi29-Feb-04 2:07 
GeneralAccessing Excel file with ASP Pin
sschilachi26-Feb-04 4:58
sschilachi26-Feb-04 4:58 
GeneralRe: Accessing Excel file with ASP Pin
Jeff Monheiser1-Mar-04 18:55
Jeff Monheiser1-Mar-04 18:55 
GeneralRe: Accessing Excel file with ASP Pin
Rob Graham3-Mar-04 12:30
Rob Graham3-Mar-04 12:30 
GeneralE-mails, URLs e VarChars Pin
Clickok25-Feb-04 15:28
Clickok25-Feb-04 15:28 
GeneralRe: E-mails, URLs e VarChars Pin
Jon Sagara25-Feb-04 16:00
Jon Sagara25-Feb-04 16:00 
GeneralRe: E-mails, URLs e VarChars Pin
Bryan Steinberg25-Feb-04 16:07
Bryan Steinberg25-Feb-04 16:07 
GeneralRe: E-mails, URLs e VarChars Pin
Clickok26-Feb-04 5:15
Clickok26-Feb-04 5:15 
GeneralRe: E-mails, URLs e VarChars Pin
Mike Dimmick29-Feb-04 7:38
Mike Dimmick29-Feb-04 7:38 
GeneralRe: E-mails, URLs e VarChars Pin
Clickok29-Feb-04 9:07
Clickok29-Feb-04 9:07 
Question10 random recordsetsw? Pin
bryce25-Feb-04 13:54
bryce25-Feb-04 13:54 
AnswerRe: 10 random recordsetsw? Pin
Bill Dean26-Feb-04 1:47
Bill Dean26-Feb-04 1:47 
GeneralSQL Script Editor Pin
Clickok25-Feb-04 12:59
Clickok25-Feb-04 12:59 
GeneralRe: SQL Script Editor Pin
Bryan Steinberg25-Feb-04 15:11
Bryan Steinberg25-Feb-04 15:11 
GeneralRe: SQL Script Editor Pin
Clickok25-Feb-04 15:30
Clickok25-Feb-04 15:30 
GeneralRe: SQL Script Editor Pin
Clickok26-Feb-04 8:03
Clickok26-Feb-04 8:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.