-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate and SQLite Pragmas to gain Speed Boost in Win7
PostPosted: Tue Aug 30, 2011 3:09 am 
Newbie

Joined: Tue Aug 30, 2011 2:29 am
Posts: 1
Hello Community,

used Software:
- hibernate 3.6
- sqlite jbdc 3.6.0
- java jre 1.6.X

i have following problem:
- We transfer data over a tcp connection ( 20 000 entrys )
- we create a sqlite database with the help of hibernate
- we use hibernateview and hibernate annotations to create querys
- hibernate proberties are also used
- storing 20 000 entries with hibernate and NO sqlite pragmas enabled lasts nearly 6 minutes ( ~ 330 sec) on Windows 7
- storing 20 000 entries without hibernate and all relevant sql pragmas enabled lasts ca 2 minutes ( ~ 109 sec ) on windows 7
- tests with hibernate and sqlite without pragmas on windows XP and windows Vista run fast, but on win7 it lasts nearly
3 times ( ~ 330 sec - win 7) as long as on the XP machine
- on windows 7 we want to activate sqlite pragmas to gain speed boost
- relevant pragmas are:
PRAGMA cache_size = 400000;
PRAGMA synchronous = OFF;
PRAGMA count_changes = OFF;
PRAGMA temp_store = MEMORY;
PRAGMA auto_vacuum = NONE;

- problem: we must use hibernate ( no Nhibernate ! )

- quesion:
- how to enable these pragmas in hibernate sqlite connection? is this possible? Please tell me how its done.
- is it possible to do so with using hibernate?



Many Thanks,
Sebastian


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.