From 6ad630edf47774503768e7af3b1c8ffd8c08d3ad Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 13 Feb 2018 17:07:45 +0100 Subject: [PATCH] turn of views as default --- SeedDMS_Core/Core/inc.DBAccessPDO.php | 2 +- SeedDMS_Core/package.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SeedDMS_Core/Core/inc.DBAccessPDO.php b/SeedDMS_Core/Core/inc.DBAccessPDO.php index 336339a23..ff0776588 100644 --- a/SeedDMS_Core/Core/inc.DBAccessPDO.php +++ b/SeedDMS_Core/Core/inc.DBAccessPDO.php @@ -217,7 +217,7 @@ class SeedDMS_Core_DatabaseAccess { $this->_ttcontentid = false; $this->_ttreceiptid = false; $this->_ttrevisionid = false; - $this->_useviews = true; + $this->_useviews = false; // turn off views, because they are much slower then temp. tables $this->_debug = false; } /* }}} */ diff --git a/SeedDMS_Core/package.xml b/SeedDMS_Core/package.xml index 5f83e1e04..f9670dd16 100644 --- a/SeedDMS_Core/package.xml +++ b/SeedDMS_Core/package.xml @@ -31,6 +31,8 @@ add lists of drafts and obsolete docs in SeedDMS_Core_DMS::getDocumentList() add fast sql statement to SeedDMS_Core_Document::getReceiptStatus() if limit=1 add callback onCheckAccessDocument to SeedDMS_Core_Document::getAccessMode() add new document status 'needs correction' (S_NEEDS_CORRECTION) +do not use views as a replacement for temp. tables anymore, because they are much +slower.