Skip to content

MacHu-GWU/sqlalchemy_upsert_kit-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation Status https://img.shields.io/badge/✍️_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/⭐_Star_me_on_GitHub!--None.svg?style=social&logo=github

Welcome to sqlalchemy_upsert_kit Documentation

https://sqlalchemy-upsert-kit.readthedocs.io/en/latest/_static/sqlalchemy_upsert_kit-logo.png

sqlalchemy_upsert_kit provides high-performance bulk upsert operations for SQLAlchemy applications using temporary table staging. It offers three optimized strategies: insert_or_ignore for conflict-free insertion, insert_or_replace for complete record replacement, and insert_or_merge for selective column updates while preserving existing data. Each strategy leverages efficient SQL JOIN operations and temporary tables to achieve ~20x performance improvements over traditional row-by-row upserts, making it ideal for ETL processes, data synchronization, and bulk data operations where speed and reliability are critical.

Install

sqlalchemy_upsert_kit is released on PyPI, so all you need is to:

$ pip install sqlalchemy-upsert-kit

To upgrade to latest version:

$ pip install --upgrade sqlalchemy-upsert-kit

About

High-performance SQLAlchemy bulk upsert operations using temporary table staging - 20x faster than row-by-row approaches.

Resources

License

Stars

Watchers

Forks

Packages

No packages published