QUERY PLAN
Sort (cost=24.20..24.77 rows=230 width=318)
Sort Key: created_at DESC
-> HashAggregate (cost=12.88..15.18 rows=230 width=318)
Group Key: id
-> Seq Scan on tbl_erp_inventory_starts r (cost=0.00..12.30 rows=230 width=318)