由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - mysql rebuild index very slow
相关主题
MYSQL 的LOG SIZE怎么在不停 变大mysql 如何更新一个表的index啊?
大虾帮忙看看MySQL的设置MySQL 5.0 cluster question
MySQL的InnoDB表不支持full text index 怎么办?问个牛人才能解答的问题,关于mysql的内存
问一个Oralce index的问题新学mysql,请教一个时间估计
SQL 2008 Create Index vs Rebuild Index (Alter Index)CINAOUG/CINASSUG MySQL 2013讲座
How to make import (>200M) faster?请问MySQL 可以快速处理table有1亿条数据么?
When should I reorganize Index/Rebuuild Index?[合集] 问一个Oralce index的问题
骑驴找马记indexing就是设置primary key吗?
相关话题的讨论汇总
话题: mysql话题: index话题: rebuild话题: myisam话题: google
进入Database版参与讨论
1 (共1页)
y**b
发帖数: 88
1
Hi,
I am new to MySQL. I have a MyISAM table with more than 60m records. It took
forever to rebuild the index on it. Is there anyway to speed it up? Google
said large value of key_buffer_size, myisam_sort_buffer_size helps. Any best
practice to set the proper value? Thanks in advance.
j*****n
发帖数: 1781
2
extra memory and disk space should be also important key.
y**b
发帖数: 88
3
found one hack on someone's blog.
(1) create the table (tbl1) without index, then load the data
(2) create another empty table (tbl2) which has same structure
as tbl1, plus index
(3) stop mysql server
(4) copy tbl2.frm, tbl2.MYI to tbl1.frm, tbl1.MYI
(5) myisamchk -r -q tbl1.MYI
Since it needs to stop mysql start, it won't work for us.

took
Google
best

【在 y**b 的大作中提到】
: Hi,
: I am new to MySQL. I have a MyISAM table with more than 60m records. It took
: forever to rebuild the index on it. Is there anyway to speed it up? Google
: said large value of key_buffer_size, myisam_sort_buffer_size helps. Any best
: practice to set the proper value? Thanks in advance.

j*****n
发帖数: 1781
4
online indexing always time consuming.
how about use the hack you found as nightly/off hour batch?

【在 y**b 的大作中提到】
: found one hack on someone's blog.
: (1) create the table (tbl1) without index, then load the data
: (2) create another empty table (tbl2) which has same structure
: as tbl1, plus index
: (3) stop mysql server
: (4) copy tbl2.frm, tbl2.MYI to tbl1.frm, tbl1.MYI
: (5) myisamchk -r -q tbl1.MYI
: Since it needs to stop mysql start, it won't work for us.
:
: took

y**b
发帖数: 88
5
Shutdown mysql is not an option for us, so we will build the index over
weekend instead.

【在 j*****n 的大作中提到】
: online indexing always time consuming.
: how about use the hack you found as nightly/off hour batch?

I******e
发帖数: 101
6
Any reason not using InnoDB tables?
1 (共1页)
进入Database版参与讨论
相关主题
indexing就是设置primary key吗?SQL 2008 Create Index vs Rebuild Index (Alter Index)
Oracle Group and Index questionHow to make import (>200M) faster?
一个oracle performance 的问题。When should I reorganize Index/Rebuuild Index?
SQL 2000 create index 問題骑驴找马记
MYSQL 的LOG SIZE怎么在不停 变大mysql 如何更新一个表的index啊?
大虾帮忙看看MySQL的设置MySQL 5.0 cluster question
MySQL的InnoDB表不支持full text index 怎么办?问个牛人才能解答的问题,关于mysql的内存
问一个Oralce index的问题新学mysql,请教一个时间估计
相关话题的讨论汇总
话题: mysql话题: index话题: rebuild话题: myisam话题: google