Field optimization and index optimization

Field optimization

(A): can small, not big

(B): use fixed-length, not variable length

 

Index Tuning

(A) : a table's primary key and foreign key, must have an index

(2): The amount of data that should have more than 300 indexes table

(C): should be indexed on the field often connected with other tables

(D): fields in the Where statement often, especially in the field of large tables, indexing

(E): The index should be selected based on the high performance field

(Vi): The index should be built on a small field, even for large text fields long field, not to index

Guess you like

Origin www.cnblogs.com/coder-wf/p/12216960.html