QUERY PLAN
Aggregate (cost=14.77..14.78 rows=1 width=8)
-> Sort (cost=13.72..13.90 rows=70 width=1035)
Sort Key: l.is_stop, l.created_at DESC
-> HashAggregate (cost=10.88..11.57 rows=70 width=1035)
Group Key: l.id
-> Seq Scan on tbl_ledgers l (cost=0.00..10.70 rows=70 width=13)