incr analyze_index;
if !analyze_index > 30 then
begin
- let analyze t = "ANALYZE TABLE " ^ t ^ ";" in
+ let analyze t = "OPTIMIZE TABLE " ^ t ^ ";" in
List.iter
(fun table -> ignore (Mysql.exec dbd (analyze table)))
[name_tbl (); rel_tbl (); sort_tbl (); obj_tbl(); count_tbl()]