Skip to main content

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)

Source distribution for database-auto-bulk-operation 1.1
File Size Uploaded
database_auto_bulk_operation-1.1.tar.gz 5.0 kB Details

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

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page