InfluxDB优化及Python库influxdb

  • InfluxDB

    InfluxDB is an open-source distributed time series database. Find more at https://docs.influxdata.com/influxdb/latest

  • Time Precisions

    The default precision for timestamps is in nanoseconds.InfluxDB accepts the following precisions:

    • ns - Nanoseconds

    • us - Microseconds

    • ms- Milliseconds

    • s - Seconds

  • Optimize Writes(website)

    The optimal batch size is 5000 lines of line protocol.

    Sort tags by key in lexicographic order.

  • InfluxDB-Python模块(Github Documentation)

    InfluxDB-Python is a client for interacting with InfluxDB.

    目前最高支持InfluxDB1.7.4、Python3.7

    InfluxDBClient.write_points()有一个参数batch_size,表示分批写入的批次。比如将数据从一个数据库转移到另一个InfluxDB中时,一次性存入数据量太大了,可以通过其指定分几次存入,官方推荐一次存入5000条记录是最优的。

  • Reference

  1. InfluxDB从入门到放弃

你可能感兴趣的:(#,InfluxDB)