Skip to content

🚀 Implement concurrent contract save queue with deduplication#2131

Closed
mkmccarty wants to merge 22 commits intomainfrom
mm-branch-1
Closed

🚀 Implement concurrent contract save queue with deduplication#2131
mkmccarty wants to merge 22 commits intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 30, 2026 01:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements a concurrent contract save queue system with deduplication to improve performance by queueing database save operations instead of executing them synchronously. The implementation uses a buffered channel and a background worker goroutine to process saves asynchronously.

Changes:

  • Added save queue infrastructure with a buffered channel (100 capacity), mutex, and deduplication map
  • Refactored saveData() to queue contracts for asynchronous saving instead of saving synchronously
  • Created background worker goroutine to process queued save requests
  • Extracted save logic into processSingleContractSave() function

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.

File Description
src/boost/boost_datastore.go Implements concurrent save queue with channel, mutex, and worker goroutine; refactors saveData() to use queueing instead of direct saves
src/boost/boost.go Starts the background save queue worker during package initialization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@mkmccarty I've opened a new pull request, #2132, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits January 30, 2026 01:48
Co-authored-by: mkmccarty <57630+mkmccarty@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 30, 2026

@mkmccarty I've opened a new pull request, #2133, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@mkmccarty I've opened a new pull request, #2134, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@mkmccarty I've opened a new pull request, #2135, to work on those changes. Once the pull request is ready, I'll request review from you.

mkmccarty and others added 2 commits January 29, 2026 17:50
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 30, 2026

@mkmccarty I've opened a new pull request, #2136, to work on those changes. Once the pull request is ready, I'll request review from you.

mkmccarty and others added 9 commits January 29, 2026 17:50
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: mkmccarty <57630+mkmccarty@users.noreply.github.com>
Co-authored-by: mkmccarty <57630+mkmccarty@users.noreply.github.com>
…time

[WIP] Update concurrent contract save queue implementation based on feedback
[WIP] Update concurrent contract save queue implementation
Co-authored-by: mkmccarty <57630+mkmccarty@users.noreply.github.com>
@mkmccarty
Copy link
Owner Author

@copilot Give this fully merged commit another review

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@mkmccarty I've opened a new pull request, #2137, to work on those changes. Once the pull request is ready, I'll request review from you.

@mkmccarty
Copy link
Owner Author

This mix of original code and overlayed copilot implementations is confusing and I don't want to unravel what happened.

@mkmccarty mkmccarty closed this Jan 30, 2026
@mkmccarty mkmccarty deleted the mm-branch-1 branch January 30, 2026 02:10
@mkmccarty
Copy link
Owner Author

@copilot can you clean up your branch origin/copilot/sub-pr-2131 ?

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.

2 participants