-
Notifications
You must be signed in to change notification settings - Fork 409
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
Use filter and insert more documents in BenchmarkReplaceSettingsDocument
#3343
Use filter and insert more documents in BenchmarkReplaceSettingsDocument
#3343
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3343 +/- ##
==========================================
- Coverage 74.06% 74.03% -0.03%
==========================================
Files 413 413
Lines 25315 25317 +2
==========================================
- Hits 18750 18744 -6
- Misses 5474 5481 +7
- Partials 1091 1092 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
integration/benchmarks_test.go
Outdated
|
||
insertDocs := make([]any, len(docs)) | ||
for i := range insertDocs { | ||
insertDocs[i] = docs[i] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just use a setup like other benchmarks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea!
Benchmark on sqliteInserting 10000 gives 291MB total size.
Oddly it inserted too many bench-sqlite on this branch
bench-sqlite-no-pushdown
bench-sqlite on v1.9.0 release tag
Benchmark on pgInserting 10000 gives 84MB total size.
bench-pg
bench-pg-no-pushdown
|
BenchmarkReplaceSettingsDocument
BenchmarkReplaceSettingsDocument
and use filter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look reasonable to me.
Great job with all the research and investigation!
BenchmarkReplaceSettingsDocument
and use filterBenchmarkReplaceSettingsDocument
Description
Closes #2340.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Milestone (Next
), Labels, Project and project's Sprint fields.