refactor: optimize is_master subquery using EXISTS instead of COUNT
This commit is contained in:
@@ -265,9 +265,9 @@ async def get_stocks_data(
|
||||
.join(
|
||||
Product
|
||||
)
|
||||
.options(
|
||||
joinedload(MarketplaceProduct.product)
|
||||
)
|
||||
# .options(
|
||||
# joinedload(MarketplaceProduct.product)
|
||||
# )
|
||||
.where(
|
||||
MarketplaceProduct.marketplace_id == marketplace.id,
|
||||
or_(
|
||||
|
||||
Reference in New Issue
Block a user