is the pega database java api using hibernate under the hood?
we have some custom code to read from a spreadsheet and insert in batches of 1000 rows.
the performance gets progressively worse the more batches we insert.
when we invoke the code again (say to upload a second file) the performance returns to normal for the first few batches but then slowly degrades just as before.
we have heard that this kind of behavior can be related to the way which hibernate manages memory...
Message was edited by: Lochan to add Category
we posted our code and as a bench mark we wrote some pure JDBC code with no hibernate at all and the results were stunning...
the PURE JDBC code took about 4 seconds to insert 64k rows in batches of 1k.
Our Pega Database API code takes about 18-20 minutes to insert the same 64k rows using save deferred.
Pure JDBC (no DAO/HIBERNATE):
logger.error("start get case"); int rowCount = 1; try (ResultSet rs = ps.executeQuery();){ //Convert the result set into a the creaturePOJO list object... //Commented out for TEST do not commit allLines = convertRSItems(rs); logger.error("end get case"); logger.error("start insert"); PreparedStatement insertPreparedStatement = conn.prepareStatement(INSERTCREATURE); while(rs.next()){ rowCount ++; for(int i=1;i