From d4146682a8384fb9517e9071361ba4bd7e500d97 Mon Sep 17 00:00:00 2001 From: fakz9 Date: Tue, 16 Jul 2024 04:38:00 +0300 Subject: [PATCH] -2 seconds on query baby --- queries/general.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/queries/general.py b/queries/general.py index ed3d1ba..da4f79c 100644 --- a/queries/general.py +++ b/queries/general.py @@ -282,9 +282,7 @@ async def get_stocks_data( slaves_stock_subquery.c.product_id == MarketplaceProduct.product_id ) ) - print(stmt.compile(compile_kwargs={ - 'literal_binds': True - })) + result = await session.execute(stmt) marketplace_products = result.all()