In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
CREATE INDEX reseller_product_idx_distributo_reseller_sku ON "reseller_product" ("distributor_id","reseller_id","sku");
SELECT
d.status
FROM
reseller_product d
WHERE
d.sku = r.sku
AND d.distributor_id = '||distrID||'
AND d.reseller_id = '||resID||'