Skip to content

fix: write to database more frequently during manual sync#20

Merged
kevcodez merged 1 commit into
mainfrom
fix/fix-manual-sync-timeouts
Sep 30, 2024
Merged

fix: write to database more frequently during manual sync#20
kevcodez merged 1 commit into
mainfrom
fix/fix-manual-sync-timeouts

Conversation

@ecktoteckto

@ecktoteckto ecktoteckto commented Sep 30, 2024

Copy link
Copy Markdown
Contributor

Write to database after each (pagination) request to Orb-API instead of at the very end.

Context:
When manually syncing a larger number of entities, we regularly run into Gateway Timeouts (504). Although most time is simply spent on requesting the Orb-API (and not on processing the returned data) we now write to the database more frequently instead of collecting thousands of entities before updating the database.

In addition:
We log the time spent on requesting the Orb-API and writing to the database

Comment thread packages/orb-sync-lib/src/database/postgres.ts Outdated
@ecktoteckto
ecktoteckto force-pushed the fix/fix-manual-sync-timeouts branch from 0432612 to 7d5e1d5 Compare September 30, 2024 14:29
@kevcodez
kevcodez merged commit cc8ff40 into main Sep 30, 2024
@kevcodez
kevcodez deleted the fix/fix-manual-sync-timeouts branch September 30, 2024 14:30
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.5.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants