Data Persistence

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

Hi all

I'm looking into persisting data for the life of an application.

Can anyone enlighten me as to which would produce the least memory overhead;

i) Storing dataset objects in a hashtable

ii) Storing the datasets as xml files and reloading them into memory

Cheers

Keith
 
Hi,

You can store more than one table in a dataset. I would store the
dataset as xml.

Ken
---------------
Hi all

I'm looking into persisting data for the life of an application.

Can anyone enlighten me as to which would produce the least memory overhead;

i) Storing dataset objects in a hashtable

ii) Storing the datasets as xml files and reloading them into memory

Cheers

Keith
 
Keith,

For what kind of application, Webform or windowsform.

(I see not the need for a windowsform so when it is that, than maybe can you
explain why you want to do that. The persistentie from a dataset is the same
as from an hashtable or whatever)

Cor
 
Keith said:
I'm looking into persisting data for the life of an application.

Can anyone enlighten me as to which would produce the least memory
overhead;

i) Storing dataset objects in a hashtable

ii) Storing the datasets as xml files and reloading them into memory

I think these two options serve different purposes. Storing data in a
hashtable doesn't make it persistent, storing it in an XML file does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top