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:
ALTER TABLE `QS_base` ADD INDEX `qs_base_idx_sampleid` (`sampleID`);
ALTER TABLE `staging` ADD INDEX `staging_idx_rs_gene` (`rs`,`gene`);
SELECT
DISTINCT mk.gene AS gene,
qs.rs AS snp,
CONCAT(qs.A1,
qs.A2) AS genotype
FROM
dallas.QS_base qs CROSS
JOIN
dallas.staging mk
ON qs.rs = mk.rs
WHERE
qs.sampleID = 'mydna'
ORDER BY
mk.gene ASC