QUERY PLAN
GroupAggregate (cost=237.56..238.22 rows=33 width=134)
Group Key: sip.id
-> Sort (cost=237.56..237.65 rows=33 width=105)
Sort Key: sip.id
-> Hash Right Join (cost=67.05..236.73 rows=33 width=105)
Hash Cond: ((lower((ip.title)::text) = lower((sip.title)::text)) AND (lower(ip.description) = lower(sip.description)))
-> Seq Scan on tbl_inventory_products ip (cost=0.00..90.71 rows=2871 width=61)
-> Hash (cost=66.56..66.56 rows=33 width=102)
-> Seq Scan on tbl_sales_invoice_products sip (cost=0.00..66.56 rows=33 width=102)
Filter: (sales_invoice_id = ANY ('{2326,2324,2322,2323,2321,2320,2319,2318,2317,2316,2315,2314,2313,2312,2311,2308,2307,2306,2305,2302}'::integer[]))