Performance Troubleshooting
Diagnose and resolve performance issues in platform workflows.
Overview
Common performance issues:
-
Slow workflow execution
-
High memory usage
-
CPU bottlenecks
-
Database contention
Measuring Performance
Common Bottlenecks
1. Database Performance
Symptoms:
-
Long read/write times
-
High database CPU
Solutions:
-
Add indexes:
CREATE INDEX idx_customer_id ON orders(customer_id);
-
Optimize queries:
-
Use selective WHERE clauses
-
Avoid full table scans
-
-
Tune database:
-
Increase shared_buffers (PostgreSQL)
-
Adjust innodb_buffer_pool_size (MySQL)
-
Optimization Techniques
Horizontal Scaling
Add more workers:
# docker-compose.yml
services:
worker:
replicas: 4 # Process 4 tables in parallel
Profiling
Enable detailed timing:
logging.level.io.synthesized.tdk.processor=DEBUG
Output:
DEBUG Table: customers (50000 rows)
- Read: 12.3s (4065 rows/sec)
- Transform: 8.7s (5747 rows/sec)
- Write: 15.2s (3289 rows/sec)