linjmeyer / tilt-pitch

Simple replacement for the Tilt Hydrometer mobile apps and TiltPi with lots of features
GNU General Public License v3.0
51 stars 16 forks source link

Added basic influxDB batching #6

Closed linjmeyer closed 4 years ago

linjmeyer commented 4 years ago

InfluxDB client has a batch argument, but unfortunately, it assumed you already have a list/batch saved rather than handling the queueing/batching for you.

This PR adds a simple list based batch ontop of the influxDB client to ensure proper batching, which should avoid making large amounts of InfluxDB write calls.