CDA Data Sources
Community Data Access ..
Workshop - Community Data Access
Data access is the foundation of every effective dashboard and analytical application, requiring a robust abstraction layer that separates business logic from underlying data sources while providing performance optimization and query management capabilities. In this comprehensive workshop, you'll master Community Data Access (CDA), learning how to create powerful XML-based configuration files that define data sources, manage query execution, implement intelligent caching strategies, and expose data through RESTful APIs.
Using the SteelWheels sample dataset, you'll gain hands-on experience with MDX queries against Mondrian OLAP cubes, explore CDA's extensive API capabilities, and implement enterprise-grade caching solutions that dramatically improve dashboard performance and reduce database load.
In this hands-on workshop, you'll experience the complete CDA development lifecycle, starting with reviewing pre-built CDA samples and progressing through query configuration, parameterization, and cache management. You'll learn how to work with CDA's XML structure to define connections, configure data access queries across multiple data source types including SQL databases and MDX OLAP queries, and implement sophisticated parameter passing for dynamic filtering.
As you work through the exercises, you'll master critical concepts including query result caching with configurable durations, scheduled cache warming for optimal performance, and the use of CDA's built-in previewer and cache manager tools. You'll also develop expertise in crafting MDX queries that leverage OLAP cube hierarchies, filter members dynamically, and return top-N analysis results that power executive dashboards.
What You'll Accomplish:
Navigate to and explore pre-built CDA sample files in the Pentaho repository
Understand the structure and purpose of CDA XML configuration files
Review MDX queries that retrieve unique members from OLAP dimension hierarchies
Analyze queries that filter geographical hierarchies (territories, countries, cities)
Examine top-N analytical queries that return ranked customer sales data
Configure query parameters for dynamic filtering using ${parameterName} syntax
Preview query results using CDA's web-based data access interface
Access CDA queries through RESTful API endpoints with proper URL construction
Launch and navigate the CDA file editor (editFile) for direct XML editing
Understand the three-button editor interface (Save, Reload, Preview)
Enable query caching with cache="true" and cacheDuration attributes
Configure cache keys for parameterized queries to maintain separate cache entries
Implement cache warming with executeAtStart for pre-loading frequently accessed data
Schedule automated cache refreshes using the Pentaho scheduling interface
Configure CRON expressions for advanced cache refresh scheduling
Access and monitor the CDA Cache Manager web interface
Review cached queries and their execution statistics
Clear cache entries manually or through scheduled maintenance
Understand cache optimization strategies for dashboard performance tuning
By the end of this workshop, you'll have gained comprehensive knowledge of CDA's data access capabilities and caching architecture that enables high-performance dashboard development. You'll understand how to structure CDA files for maintainability, implement caching strategies that balance freshness with performance, and leverage CDA's API for flexible data integration.
Prerequisites: Pentaho Business Analytics Server with CTools and CDA plugin installed, SteelWheels sample data and Mondrian schema configured, administrative access to Pentaho User Console Estimated Time: 25 minutes

Log into Pentaho User Console as Administrator.
Select Browse Files.
Navigate to: 'Public - CTools Dashboard - CDA' folder
Highlight the CDA folder.

If you still have your Query open, then click: 'Cache this' button.

To enable caching for a query in your CDA file, you need to add cache-related settings to your dataAccess element. Here are the key cache parameters:
Example of a complete cached query configuration:
Set your schedule.



Click: 'Cached Queries'.


Last updated
Was this helpful?




