Quick onboard
Deployment
Data Modeling
Connecting
Migration
Query
Operations and Maintenance
Common Maintenance
Partition
Backup and Restore
Expansion
Mirroring
Resource Management
Security
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool guide
Data type
Storage Engine
Executor
Stream
DR (Disaster Recovery)
Configuration
Index
Extension
SQL Reference
This document introduces performance tuning methodologies in YMatrix, covering system resource optimization, database resource tuning, and SQL optimization.
Performance tuning is a highly comprehensive and critical task.
There are generally two reasons for performance tuning:
Prerequisite:

Use performance monitoring data and other requirement information to describe the current performance bottleneck or performance needs.
A good problem description should include context and clearly articulate the observed issue. It should be concise and typically contain, but not be limited to, the following information:
Better example: Using the built-in data ingestion tool in the YMatrix 5.0 GUI to load 2.8 million rows, after 30 test runs, latency increased from 30 seconds to 1 minute — nearly a 2x degradation in performance.
Poorer example: Generating test data via the GUI is getting slower.
Optimization goals vary across business scenarios. For example, in a time-series use case such as connected vehicles, optimization objectives may include improving performance for aggregation queries and join operations in detailed data queries. In contrast, for a financial core OLTP system, the goal might be reducing long-tail transaction latency.
An effective optimization objective should be quantifiable, for example:
Not acceptable:
YMatrix recommends collecting, but not limited to, the following information for analysis:
Based on collected information, identify or hypothesize the root cause of the performance bottleneck. Multiple rounds of data collection may be required to pinpoint the issue. Refer to Performance Tuning for detailed methodology.
Note!
Effective communication and collaboration are key to quickly identifying root causes.
After identifying the performance bottleneck, propose an optimization plan that is low-cost, low-risk, and delivers maximum benefit.
Even if a solution offers the highest potential gain for the most significant bottleneck, always assess its associated risks and implementation cost. Typically, YMatrix recommends the following tuning order, listed from lowest to highest cost/risk:
ANALYZE to update table statistics; or analyze query plans and rewrite SQL statements to reduce logical complexity and execution cost.Note!
To avoid irreparable performance bottlenecks during production operation, place greater emphasis on initial design. Scientifically plan, analyze, and test the data model for your use case to ensure correctness.
The tuning implementation process typically includes, but is not limited to, the following steps:
Performance tuning is rarely a one-time effort. For a given performance issue, you may need to repeat steps 2.3 through 2.7 multiple times before achieving satisfactory results.
Therefore, it's essential to evaluate tuning outcomes clearly and take the following actions: