13.07.2015 Views

Accelerate Your JBoss Enterprise Middleware - Red Hat Summit

Accelerate Your JBoss Enterprise Middleware - Red Hat Summit

Accelerate Your JBoss Enterprise Middleware - Red Hat Summit

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Accelerate</strong> <strong>Your</strong> <strong>JBoss</strong> <strong>Enterprise</strong> <strong>Middleware</strong> –Persistence JPA/HibernatePersistencePersistenceJPAJPAHibernateHibernate● Batch Inserts● What do I mean by batch inserts?● This is when you can take multiple insert statements, that wouldnormally be sent to and executed by the database one at a time,and make it into a single insert statement.● e.g.●●●●●●Insert into Table (id, val1, val2, val3) values ('x', 'x', 'x', 'x);Insert into Table (id, val1, val2, val3) values ('y', 'y', 'y', 'y');Insert into Table (id, val1, val2, val3) values ('z', 'z', 'z', 'z');And turn it into:●Insert into Table (id, val1, val2, val3) values('x', 'x', 'x', 'x'),('y', 'y', 'y', 'y'), ('z', 'z', 'z', 'z');This feature is dependent on two things. This first being aHibernate property:●The second being the JDBC driver's capabilities to rewrite thestatement:● e.g., the MySQL JDBC driver has a connection property called:● rewriteBatchedStatements

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!