Overview
At least one Data Source or Data Source Profile needs to be configured before you can use the SQL Macro or SQL-query Macro or SQL-file.
...
Div |
---|
|
On this page Table of Contents |
---|
maxLevel | 2 |
---|
minLevel | 2 |
---|
exclude | On this page |
---|
type | flat |
---|
separator | pipe |
---|
|
|
Overview
This page describes the ways of configuring a data source in the SQL for Confluence app to access a database. A data source defines the access parameters, which includes credentials.
Description
You will have to configure at least one data source or data source profile before you can use SQL, SQL File or SQL Query macros.
Info |
---|
- Access parameters and database access information for a data source profile or an application server based data source remain the same.
- The credential information for accessing databases remains the same for either of the methods mentioned below.
|
Method | Primary Benefit | Key Attributes | Documentation | Express Edition | Pro Edition |
---|
Application Server Based Data Source | Performance | - Application server based configuration
- Best performance via connection pooling or reuse
- Requires Confluence restart after a configuration change
- Recommended for long term or heavy use scenarios
| Configure Application Server based Data Sources | | |
Data Source Profiles | Convenience | - SQL for Confluence specific configuration
- Convenience
- Configuration change in affect immediately takes effect
- File system access not needed
- Can reference application server defined Data Sourcesdata sources
- Recommended for evaluation, testing, and short term scenarios
- Medium or heavier heavy use scenarios should also employ Cache for Confluence
| Configure Data Source Profiles | | |
Application Server-based Data Source | Performance | - Application server based configuration
- Best performance via connection pooling/reuse
- Requires Confluence restart after configuration change
- Recommended for long term/heavy use scenarios
| Configure Application Server-based Data Sources - 9.x | | |
...
The data source is referenced using the dataSource parameter (data source name). The exact configuration of a data source is specific to each database and application server. A Confluence administrator must set up the configuration, and the Confluence application server must be restarted for changes to take effect. The configuration has to be done very carefully as any errors in doing so, will render the data source unusable. Every database accessed by Confluence requires a data source configuration.
Tip |
---|
title | Macro Security for data source access control |
---|
|
title | - You can configure data sources using either or both of the methods
or both - for instance - mentioned above. For instance, use a data source profile
while testing or scenarios- scenarios like testing, and then switch to a server
- when/if it becomes clear it is going to be around a while |
---|
Tip |
---|
| data source access controlMacro Security for Confluence can be used to Data Sources in the same way no matter what method is used. |
Tip |
---|
title | Use Cache and Future macros around SQL macros |
---|
|
Give your users better response times and reduce the load on your server by using Cache for Confluence macros for heavy use scenarios. |
...
- data sources, for the methods mentioned above.
- For heavy use scenarios, use the Cache for Confluence app to reduce the load on your server with a faster response time.
|
Image Modified