janbjorge / PgQueuer

PgQueuer is a Python library leveraging PostgreSQL for efficient job queuing.
https://pgqueuer.readthedocs.io/en/latest/index.html
MIT License
211 stars 2 forks source link

BREAKING; Implement `AsyncPGDriver` for Database Operations in PgQueuer #32

Closed janbjorge closed 4 weeks ago

janbjorge commented 4 weeks ago

This PR replaces direct asyncpg usage with AsyncPGDriver across PgQueuer. The new driver centralizes database interactions, improving code modularity and simplifying future enhancements.

Major Changes:

This update streamlines database handling and enhances the maintainability of the codebase.

NOTE; Major performance drop(6k -> 1.5k), a followup PR with batched queries is needed (Have a poc showing 6k -> ~13k job per second)