QUERY PLAN
Limit (cost=13.44..13.49 rows=20 width=1035)
-> Sort (cost=13.44..13.61 rows=70 width=1035)
Sort Key: is_stop, created_at DESC
-> HashAggregate (cost=10.88..11.57 rows=70 width=1035)
Group Key: id
-> Seq Scan on tbl_ledgers l (cost=0.00..10.70 rows=70 width=1035)