minor
This commit is contained in:
7
db/80_indexes.sql
Normal file
7
db/80_indexes.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE INDEX IF NOT EXISTS idx_products_name_trgm ON products USING GIN (name gin_trgm_ops);
|
||||
CREATE INDEX IF NOT EXISTS idx_products_category_id ON products (category_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_products_brand_id ON products (brand_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_products_is_active ON products (is_active);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_product_attributes_product_key ON product_attributes (product_id, key);
|
||||
CREATE INDEX IF NOT EXISTS idx_product_attributes_key_value ON product_attributes (key, value);
|
||||
Reference in New Issue
Block a user