-
Notifications
You must be signed in to change notification settings - Fork 671
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
Update rusqlite version (and sqlite) #4948
Conversation
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.
This LGTM, but it looks like you need to run cargo fmt-stacks
their role is to be aware of the current underline sqlite version in order to know the sqlite features available
How to check if If it is, this migration can be done to have it with STRICT cdf3398. |
There's an open PR (#4930) which drops and recreates the tenure table. |
cdf3398
to
18fd4a5
Compare
Done, I removed the |
09f731c
to
f3688bc
Compare
I've canceled the mutants workflow as it already run here and it will get into timeout with the same mutants caught https://github.com/stacks-network/stacks-core/actions/runs/9809500036. |
Can you a quick benchmark with |
- it is known the type is always `&[&dyn ToSql]`
hyperfine -w 3 -r 10 "./stacks-inspect-new replay-block ~/mainnet-archive-4-july range 99990 100000" "./stacks-inspect-old replay-block ~/mainnet-archive-4-july range 99990 100000"
Benchmark 1: ./stacks-inspect-new replay-block ~/mainnet-archive-4-july range 99990 100000
Time (mean ± σ): 10.554 s ± 0.043 s [User: 9.354 s, System: 1.145 s]
Range (min … max): 10.502 s … 10.640 s 10 runs
Benchmark 2: ./stacks-inspect-old replay-block ~/mainnet-archive-4-july range 99990 100000
Time (mean ± σ): 10.606 s ± 0.120 s [User: 9.414 s, System: 1.137 s]
Range (min … max): 10.490 s … 10.795 s 10 runs |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Updates rusqlite to latest version
0.31.0
. That updates the sqlite version used by it from3.33.0
to3.45.0
.Applicable issues
STRICT
tables #4824Additional info (benefits, drawbacks, caveats)
Checklist
0.31.0
stacks_commons
where sqlite related data was definedquery
andquery_rows
header updated constraints on the generic type P: 0.24.2 vs 0.31.0params!
macro in all implementations the same way instead of having&[&variable as &dyn ToSql]
/params!
/rusqlite::params!
across the codebase&[&dyn ToSql]
whereparams!
is useduse rusqlite::Types::ToSql
everywhere instead of a combination ofuse rusqlite::Types::ToSql
anduse rusqlite::ToSql
RUST_BACKTRACE=1 BITCOIND_TEST=1 cargo nextest run --test-threads 1