mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Add composite index to speed up getNotifyList query
This commit is contained in:
parent
b6c56dd14c
commit
51d3f634fe
1 changed files with 12 additions and 0 deletions
|
|
@ -129,6 +129,12 @@ class ncenterlite extends ModuleObject
|
|||
return true;
|
||||
}
|
||||
|
||||
// Composite index to speed up getNotifyList
|
||||
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_member_srl_and_readed'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// PK duplicate
|
||||
if($oDB->isIndexExists('ncenterlite_notify', 'idx_notify'))
|
||||
{
|
||||
|
|
@ -208,6 +214,12 @@ class ncenterlite extends ModuleObject
|
|||
$oDB->addIndex('ncenterlite_notify', 'idx_target_member_srl', array('target_member_srl'));
|
||||
}
|
||||
|
||||
// Composite index to speed up getNotifyList
|
||||
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_member_srl_and_readed'))
|
||||
{
|
||||
$oDB->addIndex('ncenterlite_notify', 'idx_member_srl_and_readed', array('member_srl', 'readed'));
|
||||
}
|
||||
|
||||
// PK duplicate
|
||||
if($oDB->isIndexExists('ncenterlite_notify', 'idx_notify'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue