|
-
Jul 2nd, 2004, 08:44 AM
#1
Thread Starter
Registered User
xml to dataset with percent completed
while loading a big xml file into a dataset, how can i get the percent completed?
thanks...
-
Jul 3rd, 2004, 02:11 AM
#2
There is no mechanism for getting this information. You would have to invent one. Most ideas will actually slow down the process.
You can split the file into smaller parts and load them into the dataset in chunks showing progress with each chunk. Of course you would probably have to use a temp db (other than xml) to handle the chunks so you can can fill on the same dataset to combine the parts.
-
Jul 3rd, 2004, 09:40 AM
#3
Thread Starter
Registered User
how can i have a loop running at the same time as the
database.loadXML("filename")
command is runnning?
-
Jul 3rd, 2004, 11:40 AM
#4
Thread Starter
Registered User
ok. i learned how to use threading by now...
but how can i get the status of the xml -> dataset conversion?
probably using some kind of stream???
any ideas at all?
-
Jul 3rd, 2004, 11:42 AM
#5
What do you mean? You can make the call asnchronously and marshal the results back.
This example uses a webservice but you can do the samething locally with a delegate:
http://www.vbforums.com/showthread.p...hreadid=294948
-
Jul 3rd, 2004, 11:49 AM
#6
Thread Starter
Registered User
right now i load the dataset from xml in a seperate thread.
what does asynchronously mean?
with big xml files this takes about a minute. how do i get the percent completed at any time??
-
Jul 5th, 2004, 11:34 AM
#7
Thread Starter
Registered User
^ bump
this is really important. any ideas?
please...
-
Jul 5th, 2004, 12:29 PM
#8
PowerPoster
-
Jul 5th, 2004, 02:54 PM
#9
Thread Starter
Registered User
can be very different. up to 25 megabyte maybe... why?
-
Jul 7th, 2004, 02:31 AM
#10
Asynchronously means not in sync, as in an async call is not performed in sync with another but instead runs on its own thread/sync.
The Dataset has no mechanism for reporting back to you the percent of completion. The closest thing I know of is faking it which is demonstrated in that example.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|