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

Add sectorID index to deal table #1853

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

RobQuistNL
Copy link
Contributor

@RobQuistNL RobQuistNL commented Dec 20, 2023

This speeds up a ton of queries as this is quite often called

Partially fixes #1852

@RobQuistNL
Copy link
Contributor Author

This might have been one of the major slowdowns in the deal making process, as it locks up the root DB which is used a lot.

@RobQuistNL
Copy link
Contributor Author

A previous deal request took 24 seconds
A current one (with this index) took 800ms

I'll be keeping an eye on the next incoming deal requests

@RobQuistNL
Copy link
Contributor Author

all subsequent deal requestst were handled < 2s (mostly <1s)

@LexLuthr LexLuthr changed the title Create 202312210049_add_sectorid_index.sql Add sectorID index to deal table Dec 21, 2023
@LexLuthr LexLuthr merged commit 7891fe1 into filecoin-project:main Dec 21, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Boost Deals table PieceCID is not indexed
2 participants