Expensive Products in Category
The storefront opens products for a chosen category and shows higher-priced items first by price. Add an index on category and price in highest-price-first order.
Speed this query up with an index
CREATE INDEX ix_products_cat_price ON products (category, price DESC)
Tylko CREATE/ALTER/DROP — bez końcowego SELECT.
Zaloguj się, aby zobaczyć historię rozwiązań
Zaloguj sięZaloguj się, aby korzystać z Mentora AI
Zaloguj się