Any performance variations between dataset and xmldatasource control?

Discussion in 'ASP .Net' started by Showjumper, Jul 25, 2007.

  1. Showjumper

    Showjumper Guest

    Is one better than the other with handling xml files?

    Ashok
    Showjumper, Jul 25, 2007
    #1
    1. Advertising

  2. Showjumper

    Masudur Guest

    On Jul 25, 7:36 pm, "Showjumper" <nlsdkfja> wrote:
    > Is one better than the other with handling xml files?
    >
    > Ashok


    Hi Ashok

    thanks for you post... i was also curious about the issue... and did
    a little google... and found some interesting facts...

    "The XmlDataSource control is typically used with an XML file, and
    opening and reading an XML file every time a page requested can affect
    the performance of your application. Therefore, caching is enabled for
    the XmlDataSource control by default"

    "It is recommended that you set the EnableCaching property to false
    when client impersonation is enabled and the source file for the
    XmlDataSource control is retrieved based on the client identity. If
    caching is enabled, cached XML data for a single user can be viewed by
    all users and sensitive information could be exposed to an unwanted
    source."

    these above two para is mentioned in http://msdn2.microsoft.com/en-us/library/494y92bs.aspx

    and i found more interesting post where it was suggested how to use
    xml with dataset effectively...

    "if you call ReadXml to load a very large file, you may encounter slow
    performance. To ensure best performance for ReadXml, on a large file,
    call the DataTable.BeginLoadData method for each table in the DataSet,
    then call ReadXml. Finally, call DataTable.EndLoadData for each table
    in the DataSet"

    http://forums.asp.net/p/1124689/1770065.aspx...

    i am expecting microsoft support gurus will help with some more detail
    explanations.......... because its really a question when i should use
    xmldatasource and when dataset... ????

    Thanks
    Md. Masudur Rahman (Munna)
    Kaz Software Ltd.
    www.kaz.com.bd
    http://munnacs.110mb.com
    Masudur, Jul 26, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Giovanni Azua
    Replies:
    3
    Views:
    631
    Ingo R. Homann
    Aug 9, 2005
  2. Phil Thompson

    CSS broswer variations in appearance

    Phil Thompson, Oct 3, 2003, in forum: HTML
    Replies:
    1
    Views:
    466
    brucie
    Oct 3, 2003
  3. Joona I Palaste

    [OT] Variations of "foo", "bar", etc.

    Joona I Palaste, Sep 7, 2003, in forum: C Programming
    Replies:
    32
    Views:
    946
    Edward G. Nilges
    Sep 15, 2003
  4. David Siedband

    recombination variations

    David Siedband, Nov 30, 2004, in forum: Python
    Replies:
    4
    Views:
    366
    Scott David Daniels
    Dec 2, 2004
  5. phl
    Replies:
    1
    Views:
    477
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 2, 2007
Loading...

Share This Page