QUERY PLAN
Sort (cost=16.82..16.87 rows=20 width=64)
Sort Key: sales_date, created_at
-> Seq Scan on tbl_sales_order_item_renew_logs (cost=0.00..16.39 rows=20 width=64)
Filter: (sales_order_item_id = ANY ('{5359,5347,5334,5330,5329,5328,5327,12710,12709,12708,12707,12706,12705,12704,12703,12702,12701,12700,12699,12698}'::integer[]))