Re: XML, Memory, DOM, VFP9
From: Gar (Gar_at_discussions.microsoft.com)
Date: 01/30/05
- Next message: Gar: "RE: Starting Form"
- Previous message: John Smith: "Starting Form"
- In reply to: David Frankenbach: "Re: XML, Memory, DOM, VFP9"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 30 Jan 2005 05:31:03 -0800
Thanks for the info David.
"David Frankenbach" wrote:
> Gar,
>
> The XMLDOM is not all that well suited to handling large datasets like this.
> CursorToXML works fast because it's not using the DOM to generate the text
> output of the document.
>
> XMLToCursor though does use the DOM which means that the amount of memory
> required is 2-3 times the XML size plus the amount of time it actually takes
> to construct the 70k * 97 nodes in the document. You will never be satisfied
> with the performance on a document that big.
>
> You should look at using a SAX parser or put together your own XML document
> reader in VFP. The performance will be a whole lot better.
>
> --
> df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro
>
> "Gar" <Gar@discussions.microsoft.com> wrote in message
> news:76D2F12A-F6D1-4334-888E-9F62B0C97614@microsoft.com...
> > XML, Memory, DOM, VFP9
> > Given a table with these characteristics:
> > 70K records, 54 meg table, 97 fields, 794 total width
> >
> > I am having a problem with xmltocursor. It seems to time out or fail all
> > together.
> > Cursortoxml works fine and creates a 134 meg xml file. W2K, 512 meg ram.
> > Cursortoxml works fine if I use the same structured table with 1309
> > records
> > (but is slow, 7 seconds). Is the time out or failing a memory problem
> > since
> > it's using DOM by default, and if so or not, any suggestions? And does 7
> > seconds sound about right for xmltocursor for those 1309 records worth of
> > data?
> >
> > Thank you for any help
>
>
>
- Next message: Gar: "RE: Starting Form"
- Previous message: John Smith: "Starting Form"
- In reply to: David Frankenbach: "Re: XML, Memory, DOM, VFP9"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|