kobra,
I was able to fine the query that was causing the load when you first select the Send Email page.
SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM customers c LEFT JOIN orders o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL
If I remove the wildcard % from the select query in get_audiences_list() function in audience.php that creates the above query,
From:
PHP Code:
$queries_list = $db->Execute("select query_name, query_string from " . TABLE_QUERY_BUILDER . " " .
"where query_category like '%" . $query_category . "%'");
To:
PHP Code:
$queries_list = $db->Execute("select query_name, query_string from " . TABLE_QUERY_BUILDER . " " .
"where query_category like '" . $query_category . "'");
The page loads in a reasonable amount of time with minimum server load. Grated, I don't get all the results in the drop down, but I do get the "All" emails list. Maybe it is something with the "LEFT JOIN" and the ver of MySQL???
Any thoughts?