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

core/aggsigdb: refactor MemDB #2950

Merged
merged 8 commits into from
Mar 14, 2024
Merged

core/aggsigdb: refactor MemDB #2950

merged 8 commits into from
Mar 14, 2024

Conversation

gsora
Copy link
Collaborator

@gsora gsora commented Mar 6, 2024

Introduce MemDBV2: instead of relying on a complex system based on channels and read/write queries, simply store objects in a sync/map.

Simpler to read and potentially faster in systems in which there's a high rate of goroutine contention.

Add the aggsigdb_v2 feature flag to enable/disable this feature.

category: refactor
ticket: #1951
feature_flag: aggsigdb_v2

Introduce MemDBV2: instead of relying on a complex system based on channels and read/write queries, simply store objects in a `sync/map`.

Simpler to read and potentially faster in systems in which there's a high rate of goroutine contention.

Add the `aggsigdb_v2` feature flag to enable/disable this feature.
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 86.00000% with 14 lines in your changes are missing coverage. Please review.

Project coverage is 54.24%. Comparing base (7584db1) to head (ad020da).
Report is 4 commits behind head on main.

Files Patch % Lines
core/aggsigdb/memory_v2.go 91.48% 5 Missing and 3 partials ⚠️
app/app.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2950      +/-   ##
==========================================
+ Coverage   54.10%   54.24%   +0.13%     
==========================================
  Files         194      195       +1     
  Lines       27380    27500     +120     
==========================================
+ Hits        14815    14916     +101     
- Misses      10814    10826      +12     
- Partials     1751     1758       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

app/app.go Show resolved Hide resolved
core/aggsigdb/memory_v2.go Outdated Show resolved Hide resolved
core/aggsigdb/memory_v2.go Outdated Show resolved Hide resolved
core/aggsigdb/memory_v2.go Outdated Show resolved Hide resolved
core/aggsigdb/memory_v2.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Mar 11, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.6% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@pinebit pinebit left a comment

Choose a reason for hiding this comment

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

LGTM

@gsora gsora added the merge when ready Indicates bulldozer bot may merge when all checks pass label Mar 14, 2024
@obol-bulldozer obol-bulldozer bot merged commit 8704789 into main Mar 14, 2024
11 of 12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the gsora/aggsigdb_v2 branch March 14, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants