Datasource vs JDBC

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

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

 

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.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

355 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you