[JBoss Cache: Core Edition] - Re: JDBMCacheLoader location property
by cavani
After some tests, I realize the size doesn't shrink.
I am using cache to store results from batch processing. The data are regenerated everyday. With the "remove leak", the data file grows very quick.
Anyway, I give a second try with H2 embedded and JDBCCacheLoader. After removing transaction support from SFSB (that operates with the cache) and doing "put" with all data map per node instead "put" with each key/value pair, the full time and total size is the same as using JDBM backend. The load time is good too.
The H2 roadmap indicates it will improve BLOB support. After removing notes, the database doesn't shrink immediately, but after some background "cleanup" when closing database.
The size during storage stay in a reasonable limit (I really don't have idea how 200MB of data approach 13GB in "temp").
I will do more tests but the current results are favorable.
P.S.: the location property bug is present in BDB JE CL start too.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192267#4192267
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192267
17 years, 5 months
[Persistence, JBoss/CMP, Hibernate, Database] - Problems with JPA/Hibernate persist
by jharby1
I am having problems with EntityManager.persist - I am not getting any errors but on this insert I'm trying below nothing is going in the database (MS SQLServer). This is running in JBoss from an SLSB so I am using the CMT. In some prior methods I am successfully populating some objects from the DB using find so I know the connection is ok. Has anyone else run into this.
| private int insertLockRecord(PolicyFundingInfo policyFundingInfo) {
| EntityManagerFactory emf = Persistence.createEntityManagerFactory("PolicyPersistenceUnit");
| EntityManager em = emf.createEntityManager();
| RecordlockEntity recordlockEntity = new RecordlockEntity();
| recordlockEntity.setUsername("PolicyServ");
| recordlockEntity.setLockdate(new Timestamp(new Date().getTime()));
| recordlockEntity.setRecordkey(Integer.toString(policyFundingInfo.getCertmainseqno()));
| recordlockEntity.setRecordtype("POL");
| try {
| em.persist(recordlockEntity);
| }
| catch (Throwable e) {
| e.printStackTrace();
| }
| Integer recordLockKey = new Integer(0);
| em.close();
| return recordLockKey.intValue();
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192262#4192262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192262
17 years, 5 months