Skip to content

fix(import): allow bounded bulk imports on smaller hosts - #64

Merged
mustafazeydani merged 1 commit into
mainfrom
codex/import-transaction-budget
Sep 17, 2026
Merged

mustafazeydani merged 1 commit into
mainfrom
codex/import-transaction-budget

Conversation

@mustafazeydani

Copy link
Copy Markdown
Member

The geography import exceeded Prisma's default five-second transaction timeout on a CPU-limited host. Give only this atomic bulk import a 60-second execution budget and five-second acquisition limit; preserve its 500-row batches, rollback behavior and post-commit cache invalidation. Normal API transaction defaults remain unchanged.

Validation: typecheck, Biome, production build and both importer tests pass. A failure-path test confirms caches are not invalidated when the transaction fails. The failed destination import was rolled back: all 8 tables / 16,462 rows and their content fingerprints still match the source.

@mustafazeydani
mustafazeydani merged commit cf50e4a into main Sep 17, 2026
4 checks passed
@mustafazeydani
mustafazeydani deleted the codex/import-transaction-budget branch September 17, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant