QUERY PLAN
Sort (cost=8.17..8.18 rows=1 width=372)
Sort Key: serial_no, sort, id
-> Index Scan using idx_tbl_ledger_cash_items_ledger_id on tbl_ledger_cash_items (cost=0.14..8.16 rows=1 width=372)
Index Cond: (ledger_id = 1)
Filter: ((NOT is_delete) AND (parent_id IS NOT NULL))