Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 27th, 2006, 08:05 PM
suresh.csharp@gmail.com
Guest
 
Posts: n/a
Default XML - Xpath Memory issues

Hi,
I am trying to import huge data into XML files it is in more than
700Mbs, creating a index(catalog) XML file for all the imported XML
files for searching xml files content. The idex(catalog) file will be
more than
100mb. When I try to load this index(catalog) file to DOM on IE, it is
taking lot of time and when I do search on this document with Xpath and
load the results it is taking almost like 2-4 minutes and some times it
will give out of memory error. I have to run this entire application
in CD's and run on clients browsers.

I am doing lot of google on this issue.. but not much help. Can any one
tell me.. How much size of XML file load on to DOM, it will stable and
doing Xpath on this document. Any performance tips most welcome..

Thanks
Suresh

  #2  
Old February 28th, 2006, 03:05 AM
Joe Kesselman
Guest
 
Posts: n/a
Default Re: XML - Xpath Memory issues

suresh.csharp@gmail.com wrote:[color=blue]
> How much size of XML file load on to DOM, it will stable and
> doing Xpath on this document. Any performance tips most welcome..[/color]

Depends on the DOM implementation. (Remember, the DOM is just an API,
and that same API may have many different kinds of data storage
implemented behind it.)

Simple-minded DOM implementations (one object per node) do tend to burn
a lot of memory, especialy in Java where objects have a lot of overhead.
That shouldn't be a huge problem in a system with decent virtual memory,
but you may run into swapping.

Some DOM implementations may use more compact back-end representations,
simply exposing them through DOM proxy objects.

Or the best answer may not be to use DOM at all. Apache Xalan uses a
non-DOM data model known as DTM. If your task can be implemented as an
essentially linear scan of the document, you may not even need a
complete in-memory model and may prefer to do a SAX-based streaming
solution.

(See also http://www.w3.org/DOM/faq.html#SAXandDOM)

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles