-->
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: Why does hibernate resend prepared statements?
PostPosted: Tue Sep 22, 2009 4:27 am 
Newbie

Joined: Tue Sep 22, 2009 4:14 am
Posts: 1
Gents,
I started using hibernate but I don't understand why does hibernate resends prepared statements?

look at the following server log
Sep 22 09:09:22 home postgres[8246]: [2176-1] LOG: execute <unnamed>: insert into table (messageid, messagearrived, subj, sender, rec, size,
Sep 22 09:09:22 home postgres[8246]: [2176-2] host, id) values ($1, $2, $3, $4, $5, $6, $7, $8)
Sep 22 09:09:22 home postgres[8246]: [2176-3] DETAIL: parameters: $1 = '9AC428DC98.A6957', $2 = '2009-09-13 22:26:58+01', $3 = 'Sub', $4 = 'postmaster@host.com', $5
Sep 22 09:09:22 home postgres[8246]: [2176-6] = 'alisa@google.com', $6 = '6248', $7 = 'smtp1', $8 = '12677460'

problem is that I run an import of quite bit of data (0,5mil messages a day) but hibernate keeps sending to the database even the prepared statement I every time. think it should send just execute "name" and the parameter after it send the PS or the first time
Is there a setting I'm missing?

Stojan


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.