Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Session-specific eclipselink.jdbc.batch-writing.size
Session-specific eclipselink.jdbc.batch-writing.size [message #1837364] Thu, 28 January 2021 09:27
Eclipse UserFriend
Hello all,

We would like to use a different value for "eclipselink.jdbc.batch-writing.size" just in a specific scenario (for some data import) and in the rest of our use cases use the value set in the persistence.xml.

What we tried in a stateless bean:
-
@PersistenceContext
private EntityManager manager;
....
Session session = manager.unwrap(Session.class);
session.getLogin().setMaxBatchWritingSize(200);
doImport();


Although the above cod does change the used batch write size, I was surprised, to say so, that the batch write size is still 200 before I would execute the above code again, but I was expecting for it to be reset to the value from persistence.xml.

Are we doing something wrong? Does EclipseLink actually support this scenario?

Thank you!

EclipseLink 2.6.5 in Payara 4.1.2.191
Previous Topic:PerformanceMonitor Log output when used in Payara
Next Topic:lazy loading vs detached objects
Goto Forum:
  


Current Time: Thu Jul 03 20:08:02 EDT 2025

Powered by FUDForum. Page generated in 0.03670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top