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 `betting` ADD INDEX `betting_idx_status_type_user_date` (`status`,`type`,`user`,`date`);
ALTER TABLE `members` ADD INDEX `members_idx_status_id` (`status`,`id`);
SELECT
betting.id
FROM
betting,
members
WHERE
members.status = 1
AND members.id = betting.user
AND betting.date BETWEEN '2016-09-01' AND '2016-09-30'
AND betting.status = 1
AND betting.type = 1