Datasource vs JDBC

Deleted user September 22, 2014

Hi,

I want to configure my external MySQL database with confluence 5.5.6

Is there a performance difference between JDBC and Datasource

3 answers

6 votes
Deividi Luvison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2014

Hey Andrew,

There is no much of a difference between terms of performance, we usually recommend JDBC over JNDI because the default Tomcat libraries may not be optimized for Atlassian applications.

Using direct JDBC is the standard method when installing Confluence which also offer you more configuration option regarding the connection pool size and timeout into the <Confluence Home>\confluence.cfg.xml file.

Hope it helps.
Thanks and Regards,
David|Confluence Support Engineer

 

1 vote
Emeric Vernat
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2016

I agree that there is certainly no much of a difference in terms of performance.

But, there are more options (not less) when using the JNDI datasource than when using "JDBC direct".
See the following doc about datasource parameters for recent Tomcat versions, for example about pool sizes and timeouts:

http://commons.apache.org/proper/commons-dbcp/configuration.html

If you are currently setup for JDBC direct, what's the simplest method to switch over to Datasource to utilize the JavaMelody SQL Metrics? Do have to configure the server.xml and confluence.cfg-conf files with the lines for Datasource? I am looking for the simplest answer.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events