QUERY PLAN
Seq Scan on tbl_erp_inventory_product_sns (cost=0.00..2.93 rows=1 width=157)
Filter: ((id <> ALL ('{89,86}'::integer[])) AND (erp_inventory_product_id = 44) AND ((NOT is_used) OR (id = ANY ('{89,86,68}'::integer[]))))