1. pip database_auto_bulk_operation
强大的自动批量聚合操作各种数据库,不需要再调用处手动去喂给批量调用方法一个个组装好了数组。
自动批量聚合操作数据库能减少客户端和数据库服务端的io往返次数,效率提升大。
包括支持mysql mongo redis elastic。
主要原理是批量操作对象内部有一个while 1的守护线程,不断的去自动组合列表任务,
然后调用各种数据库的的python包的批量操作方法。
同时加入一个atexit的钩子,防止守护线程随程序一起结束时候,掉一批还未批量插入的尾部任务。
各种数据库的更简单的批次操作,主要是不用再调用处手动切割分组来调用原生中间件操作类的批量操作方法
对于未知时间的离散任务能够自动批量聚合,这种情况下无法自己提前切割分组,使用此包的方式非常适合。
Metadata
Release files for database-auto-bulk-operation 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| database_auto_bulk_operation-1.1.tar.gz | 5.0 kB | Without provenance | Details for database_auto_bulk_operation-1.1.tar.gz |
Release files / database_auto_bulk_operation-1.1.tar.gz
| Download URL | database_auto_bulk_operation-1.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94734411e1d52eef0db5884a0083b5ec52359314cac9278850a19ca3668cc25e
|
|
BLAKE2b-256 checksum How to use checksums |
316f9ed8567c92c5c6dae7322413338707163dd645e9b32daef3b569be14c786
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.6
|
Security for database-auto-bulk-operation 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.