Hi,<div><br></div><div>I have the following issue:</div><div>in our boost DB, we have two large tables (the nodes table and the table where the number of hits are counted).</div><div><br></div><div>indexes are all there and the queries are fast (tested via postgres command).</div>
<div><br></div><div>BUT: before the "java.sql.Connection" object can be used, it tests the connection first to the DB, before the object is handed over to your code.</div><div><br></div><div>The query looks like this: SELECT 1 FROM <tablename>;</div>
<div><br></div><div>the problem with that query is, that it takes 4 seconds (we have > 3 Mio. rows in the tables).</div><div><br></div><div>Does anybody know how to change the TEST STATEMENT for the java.sql.Connection ?</div>
<div><br></div><div>I also posted the question on <a href="http://stackoverflow.com">stackoverflow.com</a>, I'll post the response here if it helped.</div><div>If you have an idea, let me know, thanks.</div><div><br></div>
<div>Cheers</div><div>Balz</div>