You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current code in stackslib/src/chainstate/stacks/db/transactions.rs : ~1165 attempts to load the entire contract from the backing store just to check for the contract's existence. This can be optimized to use a method which ultimately uses an EXISTS query instead.
cylewitruk
changed the title
[Improvement] Improve efficiency of checking for contract existence prior to contract deploy
[Optimization] Improve efficiency of checking for contract existence prior to contract deploy
Feb 28, 2024
The current code in
stackslib/src/chainstate/stacks/db/transactions.rs
:~1165
attempts to load the entire contract from the backing store just to check for the contract's existence. This can be optimized to use a method which ultimately uses anEXISTS
query instead.Related to #4428.
The text was updated successfully, but these errors were encountered: