๐ Products Table (Sample Data)
| ProductID |
๐ Name (Indexed) |
๐ Category (Indexed) |
Price |
Description |
| 1 | Soap | Personal Care | $0.60 | Premium bathing soap with natural ingredients |
| 2 | Shampoo | Personal Care | $1.60 | Anti-dandruff shampoo for healthy hair |
| 3 | Rice | Grocery | $1.10 | Basmati rice 1kg pack premium quality |
| 4 | Oil | Grocery | $2.00 | Mustard oil cold pressed organic |
| 5 | Papad | Snacks | $0.35 | Crispy papad made from lentils |
๐ Current Indexes
| Index Name |
Table |
Columns |
Type |
Status |
| idx_product_name | Products | Name | Single Column | โ
Active |
| idx_category_price | Products | Category, Price | Composite | โ
Active |
| idx_product_id | Products | ProductID | Unique | โ
Active |
Benefits of Indexes:
๐ Name Index: Faster product searches
๐งฉ Composite Index: Quick filtering by category and price
โญ Unique Index: Prevents duplicate ProductIDs