-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fix index for ethflow_orders table #2836
Conversation
Reminder: Please update the DB Readme. Caused by: |
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.
Gave it a try locally, didn't really help(still have 3-4s to execute).
We have 2 identical indexes: user_valid_to and order_valid_to, right? One should be dropped. |
Relevant to #2831 (comment) |
Dropped |
Description
Previously index was created on a wrong table: "orders" instead of "ethflow_orders":
https://github.com/cowprotocol/services/blob/main/database/sql/V031__create_ethflow_orders.sql#L11
Should speed up the OPEN_ORDERS query, although not sure how much.