Quick Reference
All Configuration Options
| Category | Option | Values | Default | Description |
|---|---|---|---|---|
| Logging | log_level | DEBUG/INFO/WARNING/ERROR | WARNING | Log verbosity |
log_format | ”simple”, “verbose" | "simple” | Log message format | |
| Cache | cache_enabled | True/False | True | Enable result caching |
cache_ttl | float (seconds) | 0.0 | Cache time-to-live | |
| Engine | execution_engine | ”auto”, “chdb”, “pandas" | "auto” | Execution engine |
cross_datastore_engine | ”auto”, “chdb”, “pandas" | "auto” | Cross-DataStore operations | |
| Compat | compat_mode | ”pandas”, “performance" | "pandas” | Pandas compatibility vs SQL-first throughput |
| Profiling | profiling_enabled | True/False | False | Enable profiling |
| Dtype | correction_level | NONE/CRITICAL/HIGH/MEDIUM/ALL | HIGH | Dtype correction level |
Configuration Methods
Logging Configuration
Cache Configuration
Engine Configuration
Compatibility Mode
Profiling Configuration
Dtype Correction
Using config Object
Theconfig object is a singleton that manages all settings:
Configuration in Code
Per-Script Configuration
Context Manager (Future)
Common Configuration Scenarios
Development/Debugging
Production
Maximum Throughput
Performance Testing
Pandas Compatibility Testing
Related Documentation
- Execution Engine - Engine selection details
- Performance Mode - SQL-first mode for maximum throughput
- Function Config - Per-function engine configuration
- Logging - Logging configuration
- Profiling - Performance profiling