-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add composite index to speed up getNotifyList query
모듈내의 인덱스랑 스키마에 적용된 각종 오타 수정완료 By @kijin
- Loading branch information
Showing
3 changed files
with
37 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<table name="ncenterlite_notify"> | ||
<column name="notify" type="char" size="32" notnull="notnull" primary_key="primary_key" breif="메시지 ID" /> | ||
<column name="notify" type="char" size="32" notnull="notnull" primary_key="primary_key" brief="메시지 ID" /> | ||
|
||
<column name="srl" type="number" size="11" notnull="notnull" index="idx_srl" breif="이벤트 대상의 상위 srl" /> | ||
<column name="target_srl" type="number" size="11" notnull="notnull" index="idx_target_srl" breif="이벤트 대상 srl(문서/댓글)" /> | ||
<column name="target_p_srl" type="number" size="11" notnull="notnull" index="idx_target_p_srl" breif="이벤트 대상 srl(문서/댓글) 대댓글의 경우 앞전 댓글" /> | ||
<column name="type" type="char" size="1" notnull="notnull" breif="이벤트 대상 타입" /> | ||
<column name="target_type" type="char" size="1" notnull="notnull" breif="이벤트 타입" /> | ||
<column name="notify_type" type="number" breif="이벤트 타입 SRL" /> | ||
<column name="srl" type="number" size="11" notnull="notnull" index="idx_srl" brief="이벤트 대상의 상위 srl" /> | ||
<column name="target_srl" type="number" size="11" notnull="notnull" index="idx_target_srl" brief="이벤트 대상 srl(문서/댓글)" /> | ||
<column name="target_p_srl" type="number" size="11" notnull="notnull" index="idx_target_p_srl" brief="이벤트 대상 srl(문서/댓글) 대댓글의 경우 앞전 댓글" /> | ||
<column name="type" type="char" size="1" notnull="notnull" brief="이벤트 대상 타입" /> | ||
<column name="target_type" type="char" size="1" notnull="notnull" brief="이벤트 타입" /> | ||
<column name="notify_type" type="number" brief="이벤트 타입 SRL" /> | ||
|
||
<column name="member_srl" type="number" size="11" notnull="notnull" index="idx_member_srl" breif="receiver" /> | ||
<column name="member_srl" type="number" size="11" notnull="notnull" index="idx_member_srl" brief="receiver" /> | ||
|
||
<column name="target_member_srl" type="number" size="11" notnull="notnull" index="idx_target_member_srl" breif="sender" /> | ||
<column name="target_nick_name" type="varchar" size="50" notnull="notnull" breif="sender" /> | ||
<column name="target_user_id" type="varchar" size="50" notnull="notnull" breif="sender" /> | ||
<column name="target_email_address" type="varchar" size="50" notnull="notnull" breif="sender" /> | ||
<column name="target_member_srl" type="number" size="11" notnull="notnull" index="idx_target_member_srl" brief="sender" /> | ||
<column name="target_nick_name" type="varchar" size="50" notnull="notnull" brief="sender" /> | ||
<column name="target_user_id" type="varchar" size="50" notnull="notnull" brief="sender" /> | ||
<column name="target_email_address" type="varchar" size="50" notnull="notnull" brief="sender" /> | ||
|
||
<column name="target_browser" type="varchar" size="50" breif="브라우저 제목" /> | ||
<column name="target_summary" type="varchar" size="50" breif="메시지 요약문" /> | ||
<column name="target_body" type="varchar" size="255" breif="커스텀 알림 제목" /> | ||
<column name="target_url" type="varchar" size="255" notnull="notnull" breif="링크 목적지 주소" /> | ||
<column name="target_browser" type="varchar" size="50" brief="브라우저 제목" /> | ||
<column name="target_summary" type="varchar" size="50" brief="메시지 요약문" /> | ||
<column name="target_body" type="varchar" size="255" brief="커스텀 알림 제목" /> | ||
<column name="target_url" type="varchar" size="255" notnull="notnull" brief="링크 목적지 주소" /> | ||
<column name="readed" type="char" size="1" default="N" notnull="notnull" index="idx_readed" /> | ||
<column name="regdate" type="date" index="idx_regdate" /> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters