From f4ff556a9b1dbdba06ff612cd0d27e262e0dbd76 Mon Sep 17 00:00:00 2001 From: benakamoorthi Date: Thu, 24 Nov 2011 23:43:45 +0000 Subject: Refs #1077. Improved speed of the IndexedBySite archive type by optimizing the case when launching the archiving process is disabled. Instead of selecting archive IDs one at a time, IndexedBySite will now select them all at once. Notes: * Also added an integration test that will test whether Piwik works when archiving is disabled. * Modified getKnownSegmentsToArchive() to cache its result as static function data instead of having ArchiveProcessing cache it as instance data. * Changed several instance methods in ArchiveProcessing to static methods. These methods are responsible for determining if archiving is disabled. * Removed meaningless idSite related code from TablePartitioning. git-svn-id: http://dev.piwik.org/svn/trunk@5475 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- core/TablePartitioning.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'core/TablePartitioning.php') diff --git a/core/TablePartitioning.php b/core/TablePartitioning.php index 7712e82b3a..5473d20a49 100644 --- a/core/TablePartitioning.php +++ b/core/TablePartitioning.php @@ -23,8 +23,7 @@ abstract class Piwik_TablePartitioning protected $tableName = null; protected $generatedTableName = null; protected $timestamp = null; - protected $idSite = null; - + static public $tablesAlreadyInstalled = null; public function __construct( $tableName ) @@ -40,11 +39,6 @@ abstract class Piwik_TablePartitioning $this->generatedTableName = null; $this->getTableName(); } - - public function setIdSite($idSite) - { - $this->idSite = $idSite; - } public function getTableName() { -- cgit v1.2.3