Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SQL macros use data sources to access databases. A data source defines the access parameters including credentials. The same database access information is required for each method. Similarly, the database must allow access using the information provided no matter which method is used.

MethodPrimary BenefitKey AttributesDocumentationExpress EditionPro Edition
Data source profilesConvenience
  • SQL for Confluence specific configuration
  • Convenience 
    • Configuration change in affect immediately
    • File system access not needed
  • Can reference application server defined data sources
  • Recommended for evaluation, testing, short term scenarios
  • Medium or heavier use scenarios should also employ Cache for Confluence
Data Source Profilessource profiles(tick)(tick)
Application server defined data sourcePerformance
  • 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 Sourcesapplication server based data sources(error)(tick)


Tip
titleMacro Security for data source access control

Macro Security for Confluence can  can be used to control access to specific data sources in the same way no matter what method is used.


Tip
titleUse 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  macros for heavy use scenarios.