🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
title: Use Native Format for Best Insert Performance impact: MEDIUM impactDescription: "Native format is most efficient; JSONEachRow is expensive to parse" tags: [insert, format, Native, performance]
Use Native Format for Best Insert Performance
Impact: MEDIUM
Data format affects insert performance. Native format is column-oriented with minimal parsing overhead.
Performance Ranking (fastest to slowest):
| Format | Notes |
|---|---|
| Native | Most efficient. Column-oriented, minimal parsing. Recommended. |
| RowBinary | Efficient row-based alternative |
| JSONEachRow | Easier to use but expensive to parse |
Example:
# Use Native format for best performance
client.execute("INSERT INTO events VALUES", data, settings={'input_format': 'Native'})
Reference: Selecting an Insert Strategy