[ 
https://issues.apache.org/jira/browse/OFBIZ-757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475582
 ] 

Andrew Sykes commented on OFBIZ-757:
------------------------------------

Chris,

To acheive your suggestion - which I admit would be a useful feature - would 
mean loading the file into memory and doing a RAM based shuffle of the records. 
Obviously this is risky if the file is big. More fundamentally this would mean 
moving from a SAX parser to a DOM parser, another problem is that at the moment 
a single file represents a single transaction, so if a line fails, the 
transaction is rolled back.

So, I guess the answer is, I'd love to see this feature, but I can't think of a 
way it could reasonably be acheived.

Perhaps a tool that split a mixed file into a set of single entity files could 
provide the answer?

On a related subject, I'm thinking It would be a good idea to add an option to 
read/write gzipped xml - have you any thoughts on this?

> entityImportDir does not retry failed files
> -------------------------------------------
>
>                 Key: OFBIZ-757
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-757
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>            Reporter: Andrew Sykes
>            Priority: Minor
>         Attachments: WebtoolsServices.java.patch
>
>
> It looks like the code for entityImportDir should retry failed files in case 
> referential integrity problems are fixed by a subsequent file, but this 
> doesn't happen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to