Any performance variations between dataset and xmldatasource control?

M

Masudur

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
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,052
Latest member
KetoBeez

Latest Threads

Top