-->
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.  [ 2 posts ] 
Author Message
 Post subject: SQLite performance on inserts/deletes
PostPosted: Sat Sep 16, 2006 3:56 am 
Newbie

Joined: Sun Jul 30, 2006 3:54 am
Posts: 10
Hi all,

I'm using SQLite with NHibernate, and am having performance problems when peforming a lot of inserts/deletes.

I've got a nested object hierarchy, which results in a lot of records to be inserted/deleted when objects are created/deleted. When I save to the database, system performance is not good, with a lot of disk activity.

Are there any cacheing/extent settings for SQLite which I can set via the NHibernate dialect interface?

Thanks,

James


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 9:20 am 
Newbie

Joined: Sun Jul 30, 2006 3:54 am
Posts: 10
Found the problem.

I was not wrapping the save in a transaction. Doing so has increased performance hugely. Presumably the behaviour of either the dialect implementation, or of SQLite itself, is to wrap each individual insert in a transaction if there is no transaction already open.

James


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

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.