-->
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: How [best] to intercept and change generated SQL?
PostPosted: Thu Feb 12, 2009 5:29 pm 
Beginner
Beginner

Joined: Wed Feb 23, 2005 11:29 am
Posts: 26
Hibernate version:
3.2.2 (but may update soon)

Name and version of the database you are using:
Firebird 2.0.3

Is there a [best] way that I can intercept the SQL that Hibernate generates and modify it before it goes to the database?

I'm looking into ways to speed up lots of INSERT statements. The Jaybird JDBC driver for Firebird defeats any attempts to batch the statements in the standard Hibernate way but there are some Firebird tricks I would like to try, like:

1) Creating file-backed tables with the new data and importing from there to the real tables

2) Copying the INSERT statements as a blob into a table with a trigger that parses the blob and executes the INSERT statements as a batch on the database side.

Could I write a batcher or some such object that could get/change/send the SQL?

Thanks,
-Jeff


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.