当表的数据量过大时,解析sql语句时发现索引没起作用,走的是全表
这时候就需要解析一下表
analyze table my_table compute statistics;
等价于
analyze table my_table compute statistics for table for all indexes for all columns;
当表的数据量过大时,解析sql语句时发现索引没起作用,走的是全表
这时候就需要解析一下表
analyze table my_table compute statistics;
等价于
analyze table my_table compute statistics for table for all indexes for all columns;