From 3aba4c14af1baede86e7f430314299e8576aceeb Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 23 Aug 2007 06:34:03 +0000 Subject: [PATCH] =?UTF-8?q?#113=20documents=20=ED=85=8C=EC=9D=B4=EB=B8=94?= =?UTF-8?q?=EC=97=90=20=EA=B2=B0=ED=95=A9=EC=9D=B8=EB=8D=B1=EC=8A=A4=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95.=20update=ED=95=B4=EC=95=BC?= =?UTF-8?q?=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2391 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.class.php | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/modules/document/document.class.php b/modules/document/document.class.php index eaec4297d..6cf692b9c 100644 --- a/modules/document/document.class.php +++ b/modules/document/document.class.php @@ -24,6 +24,12 @@ $oModuleController->insertActionForward('document', 'view', 'dispDocumentAdminList'); $oModuleController->insertActionForward('document', 'view', 'dispDocumentPrint'); + $oDB = &DB::getInstance(); + $oDB->addIndex("documents","idx_module_list_order", array("module_srl","list_order")); + $oDB->addIndex("documents","idx_module_update_order", array("module_srl","update_order")); + $oDB->addIndex("documents","idx_module_readed_count", array("module_srl","readed_count")); + $oDB->addIndex("documents","idx_module_voted_count", array("module_srl","voted_count")); + return new Object(); } @@ -43,6 +49,14 @@ **/ if(!$oDB->isColumnExists("documents","notify_message")) return true; + /** + * 2007. 8. 23 : document테이블에 결합 인덱스 적용 + **/ + if(!$oDB->isIndexExists("documents","idx_module_list_order")) return true; + if(!$oDB->isIndexExists("documents","idx_module_update_order")) return true; + if(!$oDB->isIndexExists("documents","idx_module_readed_count")) return true; + if(!$oDB->isIndexExists("documents","idx_module_voted_count")) return true; + return false; } @@ -69,6 +83,25 @@ $oDB->addColumn('documents',"notify_message","char",1); } + /** + * 2007. 8. 23 : document테이블에 결합 인덱스 적용 + **/ + if(!$oDB->isIndexExists("documents","idx_module_list_order")) { + $oDB->addIndex("documents","idx_module_list_order", array("module_srl","list_order")); + } + + if(!$oDB->isIndexExists("documents","idx_module_update_order")) { + $oDB->addIndex("documents","idx_module_update_order", array("module_srl","update_order")); + } + + if(!$oDB->isIndexExists("documents","idx_module_readed_count")) { + $oDB->addIndex("documents","idx_module_readed_count", array("module_srl","readed_count")); + } + + if(!$oDB->isIndexExists("documents","idx_module_voted_count")) { + $oDB->addIndex("documents","idx_module_voted_count", array("module_srl","voted_count")); + } + return new Object(0,'success_updated'); }