| Summary: | Poor Performance with Batch Writing | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Daniel Lo <daniel.lo> |
| Component: | Eclipselink | Assignee: | Project Inbox <eclipselink.foundation-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | christopher.delahunt, tom.ware |
| Version: | unspecified | Keywords: | performance |
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Daniel Lo
Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next. Issue described in the forum post is not exactly what is described in the bug. The bug should be to investigate the claim that adding a flush +clear to a loop drastically decreases performance compared to setting the batch writing mechanism size to the same interval. Ie
if batchsize =100
For (int id=1; id<100000; id++{
em.persist(new Employee(id));
if (id % batchsize==0){
em.flush();
em.clear();
}
}
The above needs to be investigated and compared with
For (int id=1; id<100000; id++{
em.persist(new Employee(id));
}
To see if there is a performance decrease and if it is due to the em.flush and em.clear calls or some configuration option.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |