DB 오버헤드와 최적화에 대해서 정보
질문 DB 오버헤드와 최적화에 대해서본문
오늘 업그레이드된 내용 중에;
"OPTIMIZER TABLE 추가"라는 말이 있었습니다.
1. G4는 G3에 비해서, overhead된 테이블이 빈번히 발생합니다. 위의 "OPTIMIZER TABLE 추가"는 거기에 대비한 것인지요?
2. 매번 phpMyAdmin을 들어가서 "복구"와 "최적화"를 시켜주는 것보다는, 관리자 메뉴 안으로 넣는 것이 어떨지요?
"OPTIMIZER TABLE 추가"라는 말이 있었습니다.
1. G4는 G3에 비해서, overhead된 테이블이 빈번히 발생합니다. 위의 "OPTIMIZER TABLE 추가"는 거기에 대비한 것인지요?
2. 매번 phpMyAdmin을 들어가서 "복구"와 "최적화"를 시켜주는 것보다는, 관리자 메뉴 안으로 넣는 것이 어떨지요?
댓글 전체
아!~~ 그렇군요. ^.^
관리자에서 따로 할필요 없을듯 하군요
관리자 초기화면 뿌려줄때와 각 프로그램이 사용될때마다 실행하도록 되어있는것 같군요.
다음은 adm 디렉토리에서 OPTIMIZE 사용된 파일 검색된 리스트입니다.
g4path/adm> grep -i optimize *
auth_update.php:sql_query(" OPTIMIZE TABLE `$g4[auth_table]` ");
board_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[board_table]`, `$g4[board_file_table]`, `$g4[board_new_table]`, `$g4[write_prefix]$bo_table` ");
boardgroup_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[group_table]` ");
boardgroupmember_update.php:sql_query(" OPTIMIZE TABLE `$g4[group_member_table]` ");
config_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[config_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[visit_table]`, `$g4[visit_sum_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[popular_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[board_new_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[memo_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[member_table]` ");
mail_update.php:sql_query(" OPTIMIZE TABLE `$g4[mail_table]` ");
member_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[member_table]`, `$g4[login_table]` ");
point_update.php:sql_query(" OPTIMIZE TABLE `$g4[point_table]` ");
poll_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[poll_table]`, `$g4[poll_etc_table]` ");
g4path/adm>
관리자 초기화면 뿌려줄때와 각 프로그램이 사용될때마다 실행하도록 되어있는것 같군요.
다음은 adm 디렉토리에서 OPTIMIZE 사용된 파일 검색된 리스트입니다.
g4path/adm> grep -i optimize *
auth_update.php:sql_query(" OPTIMIZE TABLE `$g4[auth_table]` ");
board_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[board_table]`, `$g4[board_file_table]`, `$g4[board_new_table]`, `$g4[write_prefix]$bo_table` ");
boardgroup_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[group_table]` ");
boardgroupmember_update.php:sql_query(" OPTIMIZE TABLE `$g4[group_member_table]` ");
config_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[config_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[visit_table]`, `$g4[visit_sum_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[popular_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[board_new_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[memo_table]` ");
index.php:sql_query(" OPTIMIZE TABLE `$g4[member_table]` ");
mail_update.php:sql_query(" OPTIMIZE TABLE `$g4[mail_table]` ");
member_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[member_table]`, `$g4[login_table]` ");
point_update.php:sql_query(" OPTIMIZE TABLE `$g4[point_table]` ");
poll_form_update.php:sql_query(" OPTIMIZE TABLE `$g4[poll_table]`, `$g4[poll_etc_table]` ");
g4path/adm>