Skip to content

Conversation

@m-sz
Copy link
Contributor

@m-sz m-sz commented Dec 29, 2025

Description

The create_order API has been experiencing bad latency lately. One step of creating an order is to check the amount of currently active limit orders. The query for that runs for extended amounts of time.

Changes

Optimizes user_orders_with_quote by calculating sell and buy amounts only in the last WHERE statement, meaning for orders that were already filtered for. This is a more efficient approach that should yield the same results.

How to test

@socket-security
Copy link

socket-security bot commented Dec 30, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedfutures@​0.3.30 ⏵ 0.3.3110010093100100
Updatedtoml@​0.8.14 ⏵ 0.8.2310010093100100
Updatedmimalloc@​0.1.43 ⏵ 0.1.4810010093100100
Updatedhumantime@​2.1.0 ⏵ 2.3.010010093100100
Updatedhyper@​1.6.0 ⏵ 0.14.3299 -110093100100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants