I was confused, why timescaleDB was performing poorly. Switching from a AMD64 virtualized image to a native ARM64 had a crazy change in performance.
This table shows the difference in Upserting ~500.000 measurements. These numbers are not sampled across multiple runs.
| Write path | Emulated AMD64 | Native ARM64 |
|---|---|---|
| Current upsert | 272.0 s | 17.4 s |
| Multi-row upsert, 1,000 rows per batch | 67.9 s | 33.7 s |
COPY plus set-based upsert |
28.4 s | 1.8 s |
