TIA
scott
rock on
"scott F" <srfc...@hotmail.com> wrote in message
news:#JmuFBr$CHA....@TK2MSFTNGP10.phx.gbl...
What Im trying to get is to build a very thin windows client that knows
nothing about a database or where it is and calls the web services to get
any data its looking for so its key that I pass datasets to and from the
client and not lose any of the information in the dataset since the client
may send and dataset with updated records back to the service for it to save
back into the database.
Other options I have seen involve compression, 1 I tried was a product
called ASPaccelorator.net but I must be using it wrong since I didnt see any
difference in performance3. I is others but I dont have a lot of examples so
its taking me a while to try.
Another option is remoting but again I dont have a lot of example of that
compared to web services. If you know of a place/places that have
discussions on this and some examples that would be great since web services
provides a great way to seperate the ui from the business and data layers
and I would hate to have to dump it because of the performance issues but
then again if the app is so slow noone will use it then all you have is an
elegant paperweight.
TIA
scott
"Alvin Bruney" <vapo...@hotmail.com> wrote in message
news:#IcgcUx$CHA....@TK2MSFTNGP12.phx.gbl...
return myDataSet.GetXML();
That converts the xml into a string xml and pushes it across the wire.
On the otherside just load the string back into the dataset. You won't
lose any info.
Alvin Bruney
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
scott
"Alvin Bruney" <vapo...@hotmail.com> wrote in message
news:ejSDbe3$CHA....@TK2MSFTNGP12.phx.gbl...
"scott F" <srfc...@hotmail.com> wrote in message
news:#VKECq3$CHA....@TK2MSFTNGP10.phx.gbl...
string s1=main.loaddataset(); 10 seconds
StringReader strRead=newSringReader(s1); 1 second
XmlTextReader xRead = new XMLTextReader(strRead); 1 second
ds1.ReadXml(xRead); 2 minutes!!!!!
datagrid1.DataSource=ds1; 1 second
I think any way you look at it the ReadXml method is slow and the method
microsoft is using to move an xml document into a dataset is slow and
unfortuanatly I think Im SOL until that is addressed. Im not sure , maybe
the new framework works better but for now I think I may have to shelve the
idea of web services for a while since accessing the data directly in the
windows app only takes 5 seconds to get the datagrid populated but its not
as nice as the web services route .
scott
"Alvin Bruney" <vapo...@hotmail.com> wrote in message
news:eZoeQA4$CHA....@TK2MSFTNGP11.phx.gbl...
"scott F" <srfc...@hotmail.com> wrote in message
news:uiW#JV5$CHA....@TK2MSFTNGP12.phx.gbl...
Also just as a comparision , I tried loading the dataset the normal way
without using a web service and I got the dataset loaded and bound to a
datagrid in about 2 seconds with a list of 40000 records.
Do you know much about the remoting option since that is supposed to be
faster and was wondering if xml was a part of it since that seems to be the
big bottleneck with web services and if you know where I could find some
examples of that?
scott
"Alvin Bruney" <vapo...@hotmail.com> wrote in message
news:uqOjq35$CHA....@TK2MSFTNGP10.phx.gbl...
You shouldn't be using this line of code. That's painful.
Use the XmlTextReader object to parse through the xml input source and
extract the node data you want. Put the data into appropriate data
structures as you parse. This is the absolute way to proceed.
Nicholas suggested this method and it cut my load time from 45 seconds
to under 1 second for 10,000 records. It's absolutely amazing.
scott
"Alvin Bruney" <vapo...@hotmail.com> wrote in message
news:eOh47bDA...@TK2MSFTNGP11.phx.gbl...
I can make one suggestion to improve upon the design of the WS. Instead
of sending a whole dataset object, your client could just send the data
fields as parameters and the web method could translate it into a
meaningful column name for the dataset to act on and return the result
in the form of a string rather than as a whole dataset object.
with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com