The Artima Developer Community
Sponsored Link

Java Answers Forum
Schema problem with ibatis

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Karabar Kar

Posts: 1
Nickname: karabar
Registered: Jan, 2008

Schema problem with ibatis Posted: Jan 13, 2008 11:19 PM
Reply to this message Reply
Advertisement
Hi,

I am using Ibatis and spring framework and connection pooling is done at the websphere end which refreshes the connection for every database connection that is being fetched. After the connection is being fetched. A set connection is called and the schema is set using the execute command for every connection being fetched. Now, there are various connection schemas being used which cannot be hard-coded into the code. Apart from this there are hundreds of xml files and using ${schema} for every sql statement is a big code change.

The problem is that on every connection that is being fetched, the execute command is called to set the schema which leads to a considerable performance issue. Is there any way in which the schema can be set just once in the beginning for all the connections being fetched?

Any help is highly commendable.

Thanks

Topic: Schema problem with ibatis Previous Topic   Next Topic Topic: memmory map

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use