feature (a flag to the Sender's constructor) that automatically flushes once a certain configurable buffer used size is reached: https://py-questdb-client.readthedocs.io/en/latest/api.html#questdb.ingress.Sender If you are concerned about the timelines of your flushes, you may also want to use the feature in conjunction with a timer. Here's an example for that:https://py-questdb-client.readthedocs.io/en/latest/examples.html#ticking-random-data-and-timer-based-flush Note: There's also a minor bug/limitation where auto_flush will not do a final flush on application shutdown. This will be fixed in the next patch release and in the meantime you can surround your code with a try/except for the
exception (which python raises during shutdown) and call
explicitly in the except branch.