Skip to content

feat: add upsert-on-conflict load method#649

Open
melgazar9 wants to merge 5 commits into
MeltanoLabs:mainfrom
melgazar9:main
Open

feat: add upsert-on-conflict load method#649
melgazar9 wants to merge 5 commits into
MeltanoLabs:mainfrom
melgazar9:main

Conversation

@melgazar9

Copy link
Copy Markdown

Adds an opt-in load_method: upsert-on-conflict that upserts via a single INSERT ... ON CONFLICT (key_properties) DO UPDATE SET ... . Significantly faster on large TimescaleDB hypertables, where the existing MERGE-style UPDATE forces decompression of every chunk the staging key-set touches.

Benchmark: ~29 min/batch vs ~0.8s/batch on a ~19k-chunk compressed hypertable with ~100M records.

@edgarrmondragon edgarrmondragon added the enhancement New feature or request label May 29, 2026
@edgarrmondragon

Copy link
Copy Markdown
Member

Thanks @melgazar9!

Can you take a look at the failing tests?

@melgazar9

Copy link
Copy Markdown
Author

Hey @edgarrmondragon I think i fixed it but it says workflow awaiting approval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants