Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-09-04 02:50:29 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-09-04 02:50:29 +0300
commit9b3a14f242d7751097072aae3310d7d564361bb9 (patch)
tree6bec4a75d8318d189e349261efb53f9c0911b891 /tests/PHPUnit/Integration
parentdf3e73a54336e6435f757a55bf8e0840ee4bc94e (diff)
Minor performance tweak for purge archive for deleted sites (#14843)
* Make sure to use index on log table when deleting log entries * use reader * fix query * faster purge orphaned sites * fix tests * do not use placeholders for potentially long list of ids since it is slow
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r--tests/PHPUnit/Integration/Archive/ArchivePurgerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/Archive/ArchivePurgerTest.php b/tests/PHPUnit/Integration/Archive/ArchivePurgerTest.php
index f7051937e9..465988f4bd 100644
--- a/tests/PHPUnit/Integration/Archive/ArchivePurgerTest.php
+++ b/tests/PHPUnit/Integration/Archive/ArchivePurgerTest.php
@@ -116,8 +116,8 @@ class ArchivePurgerTest extends IntegrationTestCase
//There are 5 rows for website #3. We leave the other two because they're before our purge threshold.
$deletedRowCount = $this->archivePurger->purgeDeletedSiteArchives($this->january);
- $this->assertEquals(3 * RawArchiveDataWithTempAndInvalidated::ROWS_PER_ARCHIVE, $deletedRowCount);
- self::$fixture->assertArchivesDoNotExist(array(3, 7, 10), $this->january);
+ $this->assertEquals(5 * RawArchiveDataWithTempAndInvalidated::ROWS_PER_ARCHIVE, $deletedRowCount);
+ self::$fixture->assertArchivesDoNotExist(array(3, 7, 10, 13, 18), $this->january);
}
public function test_purgeNoSegmentArchives_PurgesSegmentForAppropriateSitesOnly()