questdb / py-questdb-client

Python client for QuestDB InfluxDB Line Protocol
https://py-questdb-client.readthedocs.io
Apache License 2.0
55 stars 10 forks source link

fix: fixed defaulting logic for https auto_flush_rows #79

Closed amunra closed 7 months ago

amunra commented 7 months ago

The default for auto_flush_rows was incorrectly set to 600 (instead of 75000) when connecing over HTTPS (and not HTTP which was correct).

This caused performance issues since small requests in HTTP are not very efficient.

This PR fixes the default and restores good performance using default settings when using HTTPs and auto-flushing.

A workaround in v2.0.1 before this PR is to set the auto_flush_rows setting to 75000 explicitly in the config string.