Home > database >  Consult the PB how to fast parsing XML parse hundreds of M
Consult the PB how to fast parsing XML parse hundreds of M

Time:09-19

RT, if PB not line, is there any other fast way to the end of the main analytical data PB too often die

CodePudding user response:

Pb built-in way based on dom parsing, dom way all file will be parsed and generated objects, all objects are held in memory, memory footprint,
Large files need to SAX, pb no ready library, need to write their own, or with third-party libraries,

CodePudding user response:

Through importfile guide to the data window again for processing

CodePudding user response:

refer to the second floor pb8 response:
by importfile guide to data window for processing

Use this not line, the main is some more than 4000 bytes of data in XML



reference 1st floor pcwe2002 response:
pb built-in way based on dom parsing, dom way all file will be parsed and generated objects, all objects are held in memory, memory footprint,
Large files need to SAX, pb no ready library, need to write their own, or with third-party libraries,


I've heard of SAX is teeming with data read, but not Java some,,,

CodePudding user response:

With pb invokes the Java component is not suitable for, it is better to write a c + + DLL or use pbni use

CodePudding user response:

In addition to the last don't send a few hundred M of XML, can't think of other ways.
Hundreds of M, parsing, the most professional XML processor also look

CodePudding user response:

The hundreds of M of XML, itself is a very stupid,

XML is only suitable for small amount of data WEB transmission, commonly used in some (or some) from the backstage database in the a set of local records returned to the client,

With XML data contains hundreds of M, the part is equivalent to each time the user request data, pass the entire database to the user as weak-minded,

So at the beginning of design phase solution was sentenced to death, you will tell the boss, kill, suffering is you anyway, if you didn't make this kind of design, then you definitely should also have the right to claim for the design of specific solutions,

CodePudding user response:

Yes, the file is too big,
  • Related