Subject: Re: DataSet.ReadXml is very slow
Date: Mon, 28 Jul 2003 08:53:07 +0100
Lines: 141
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.adonet
NNTP-Posting-Host: mailgate.synergy-logistics.co.uk 62.49.130.162
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:56837
X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
Hi Scott,
It doesn't take that long to write out the xml (about 1-2 seconds). Most of
the fields are strings, some are datetimes but no binary or longs. There are
some ints as well.
The table the dataset is reading (ds.ReadXml) has about 30 fields per
datarow. An end user probably wouldn't request this much information but i
am trying out the worst case scenario.
thanks
I missed that<G> 3mb is a pretty large file for only 3000 records. Are
some of the fields Long text fields or Binary fields? How long does it take
to write out the XMLin the fist place?
Want to know more? Check out the MSDN Library at
http://msdn.microsoft.com
or the Microsoft Knowledge Base at
http://support.microsoft.com
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>
This posting is provided "AS IS", with no warranties, and confers no
rights.
--------------------
Reply-To: "hs" <
[email protected]>
From: "hs" <
[email protected]>
References: <
[email protected]>
<
[email protected]>
Subject: Re: DataSet.ReadXml is very slow
Date: Thu, 24 Jul 2003 15:27:05 +0100
Lines: 77
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <u4Vgp#
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.adonet
NNTP-Posting-Host: mailgate.synergy-logistics.co.uk 62.49.130.162
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:56632
X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
Hi Scot
product.xml, a file i created using DataSet.WriteXml(), is about 3Mb (i
mentioned this in my first post) and is 3000 records approximately (which
i
didn't mention).
I've looked at alot of links on msdn but can't find anything about my
issue.
thanks
You have given no information about the size of the XML (How many rows
are
we talking about?) For a small file , 12 seconds may be a long time, for
a
large file it might be really
good... WIthout that information as a frame of reference it is hard to
determine either way.
Want to know more? Check out the MSDN Library at
http://msdn.microsoft.com
or the Microsoft Knowledge Base at
http://support.microsoft.com
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>
This posting is provided "AS IS", with no warranties, and confers no
rights.
--------------------
Reply-To: "hs" <
[email protected]>
From: "hs" <
[email protected]>
Subject: DataSet.ReadXml is very slow
Date: Wed, 23 Jul 2003 15:31:32 +0100
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.adonet
NNTP-Posting-Host: mailgate.synergy-logistics.co.uk 62.49.130.162
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.adonet:56527
X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
Hi
I'm doing the following code
DataSet ds = new DataSet();
ds.ReadXml("product.xml"); //product.xml is 3Mb
//or ds.ReadXml(new FileStream("product.xml", File.Open));
//or ds.ReadXml(new XmlTextReader(new StringReader("<root>very long
xml</root>")));
dataGrid1.DataSource = ds.Tables[0];
the ReadXml method is taking a long time to complete (12 seconds
approx,
in
debug).
It doesnt matter if I use a XmlTextReader, or a Stream in the ReadXml
constructor, it still takes about 12 seconds. Can someone tell me how
I
could improve this speed.
thanks