Optimizing Perfex CRM Reporting: How Data Builder's Cache & Index Advisor Turbocharge Performance
When dealing with large datasets in Perfex CRM, complex reporting queries can slow down your system. Whether you are generating intricate financial dashboards or sharing public charts with hundreds of clients, performance is critical.
In Data Builder v2.3.0, we introduced two game-changing features to ensure your reports load instantly without taxing your database: Server-Side Query Caching and the Index Advisor.
1. Server-Side Query Caching: Lightning-Fast Load Times
The Problem
Public reports and complex data tables often require intensive SQL JOINs and aggregations (SUM, COUNT, AVG). If a public chart is embedded on a high-traffic website, every page view triggers a heavy database query, which can lead to slow load times and potential server exhaustion.
The Solution
Data Builder now features a highly efficient, file-based caching mechanism. Instead of querying the database every time a report is viewed, the system stores the generated data in a temporary cache file.
Key Benefits:
- Instantaneous Load Times: Cached reports load in milliseconds, drastically improving the user experience for your clients and team members.
- Reduced Server Load: High-traffic public embeds will no longer crash your database, as the data is served directly from the cache.
- Customizable TTL (Time-To-Live): You have full control over the cache duration. You can set the cache to refresh every 60 minutes, 24 hours, or any custom interval depending on how "real-time" the data needs to be.
- Admin "Clear Cache" Button: If you need to force an immediate data refresh, administrators can easily clear the cache directly from the report UI.
Centralized Cache Manager Dashboard
To make caching even easier to maintain, Data Builder now includes a dedicated Cache Manager accessible directly from the main sidebar. This centralized dashboard provides a bird's-eye view of all your reports, allowing you to:
- Instantly toggle caching ON or OFF for individual reports without opening the View Builder.
- Quickly adjust the Interval Range (TTL) for each report from a single table.
- Use Bulk Actions like "Enable All Cache" (with a 60-minute default TTL) or "Clear All Cache" with just one click.
- Navigate directly to the report's public embed link or data preview.
This saves administrators significant time when managing performance policies across dozens of complex charts and tables.
2. Index Advisor: Intelligent Database Optimization
The Problem
Even with caching, the initial query (when the cache is built or refreshed) can be slow if your MySQL database lacks the proper indexes. Identifying exactly which columns need to be indexed across complex, multi-table JOINs is typically a task reserved for experienced database administrators.
The Solution
The Index Advisor is a built-in diagnostic tool that acts as your personal DBA. It analyzes your specific Data Builder view configurations and automatically suggests the optimal SQL indexes to accelerate your raw database queries.
How It Works:
- Dynamic Analysis: The advisor uses MySQL's
EXPLAINstatement at runtime to analyze your view'sWHERE,JOIN, andGROUP BYclauses. - Actionable Suggestions: It provides precise SQL
ALTER TABLEcommands that you can execute to add missing indexes. - Massive Speed Gains: Adding the right index can reduce query execution time from several seconds down to a few milliseconds.
Conclusion
With the combination of intelligent Query Caching for instant frontend delivery and the Index Advisor for backend database optimization, Data Builder for Perfex CRM is now equipped to handle massive datasets and high-traffic public reports with ease.
Stop worrying about server timeouts and start delivering a seamless, lightning-fast reporting experience to your clients.
Data Builder — Visual Reporting, REST API & GraphQL for Perfex CRM
Create powerful cross-module reports in Perfex CRM — no SQL, just a visual builder for datasets, filters, and charts.
Transform Perfex CRM into an API-first platform with unified GraphQL and REST APIs for core Perfex CRM tables, custom datasets, reports, and third-party module data.
Secure and scale your data workflows with granular permissions, tokenized access control, and reusable API-driven data assets.