Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Fix SQLite panic when syncing many UTXOs (simpler alternative) #1834

Closed

Conversation

evanlinjin
Copy link
Member

@evanlinjin evanlinjin commented Feb 14, 2025

Description

Alternative to #1828

Notes to the reviewers

Changelog notice

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

jguinta and others added 5 commits February 13, 2025 12:33
For some wallets there exists a pathological case where we may try to fetch many thousands
        of transactions at once, which creates enormous memory pressure. By chunking the batch
        into more reasonably sized sub-queries, we allow time for memory to be freed.
This reduces the chance of `DatabaseBusy` by limiting the number of db
connections to 1.
@evanlinjin evanlinjin changed the title Many utxos evan Draft: Fix SQLite panic when syncing many UTXOs (simpler alternative) Feb 14, 2025
@evanlinjin
Copy link
Member Author

Closing as #1836 looks to be the superior solution.

@evanlinjin evanlinjin closed this Feb 15, 2025
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.

3 participants