First XML import mapping of a large XML file after restart of the application is very slow.

Hello all,   I am working on an application which processes relatively large XML files. The XML files are around 200MB in size and contain 1000 records each. When processing an XML file, the app first does an XML import mapping with commit and after that eriches the resulting entities before again committing the result.     After a restart of the application several files can be pending for processing. The behavior I am seeing is that the processing of the first file takes about 60 minutes where most of the time is spent in the single XML import action.   After processing the first file importing a similar sized file takes about 5 minutes. There is no overlap between the entities created by the import of these two files.   Has anyone seen similar behaviour or any idea on why the first XML import takes so much more time than consecutive imports?    
0 answers