Data Persistence

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keith

    Data Persistence

    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


  • Ken Tucker [MVP]

    #2
    Re: Data Persistence

    Hi,

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

    Ken
    ---------------
    "Keith" <keith.wilson@b owe.co.uk> wrote in message
    news:cvmsdb$c5k $1@titan.btinte rnet.com...
    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



    Comment

    • Cor Ligthert

      #3
      Re: Data Persistence

      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


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Data Persistence

        "Keith" <keith.wilson@b owe.co.uk> schrieb:[color=blue]
        > 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[/color]

        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.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        Working...