Aggregate (cost=38.76..38.77 rows=1 width=8) |
-> Sort (cost=38.69..38.70 rows=5 width=665) |
Sort Key: p.updated_at DESC |
-> Group (cost=38.60..38.63 rows=5 width=665) |
Group Key: p.id |
-> Sort (cost=38.60..38.62 rows=5 width=12) |
Sort Key: p.id |
-> Nested Loop (cost=0.28..38.55 rows=5 width=12) |
-> Seq Scan on tbl_erp_inventory_products eip (cost=0.00..1.06 rows=5 width=4) |
Filter: (inventory > '0'::numeric) |
-> Index Scan using tbl_products_pkey on tbl_products p (cost=0.28..7.49 rows=1 width=28) |
Index Cond: (id = eip.product_id) |