Optimize SQL query using temporary table

This commit is contained in:
Amine Ben hammou
2019-08-27 08:30:52 +01:00
committed by M. Shull
parent 9a600275b3
commit 25ddc80a9a
2 changed files with 11 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ class InactiveSubscribersControllerTest extends \MailPoetTest {
\ORM::raw_execute('TRUNCATE ' . ScheduledTaskSubscriber::$_table);
\ORM::raw_execute('TRUNCATE ' . SendingQueue::$_table);
\ORM::raw_execute('TRUNCATE ' . Newsletter::$_table);
\ORM::raw_execute('DROP TABLE IF EXISTS inactives_task_ids');
$this->newsletter = Newsletter::createOrUpdate([
'subject' => "Subject ",
"type" => Newsletter::TYPE_STANDARD,