Skip to content

Commit

Permalink
drop unneeded join that makes things slow
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Oct 11, 2024
1 parent 1444b81 commit 3a72aa0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/sc_keeper/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ def query():
).label("min_price_ondemand"),
)
.where(ServerPrice.status == Status.ACTIVE)
.join(
BenchmarkScore,
(ServerPrice.vendor_id == BenchmarkScore.vendor_id)
& (ServerPrice.server_id == BenchmarkScore.server_id),
)
.join(
Currency,
(ServerPrice.currency == Currency.base) & (Currency.quote == "USD"),
Expand Down

0 comments on commit 3a72aa0

Please sign in to comment.