Database Optimization

 

Index. A database index should be added for the most queried columns.

Normalization, Partition, Join order, Buffer size.

Log File. Storing the database transaction log on a separate physical disk may also improve directory performance.

Query Plan. Avoid sub-query.

Archiving. For example, keep only the last 12 months of data in the warehouse, and archive older data from the warehouse. This database archive strategy will help limit the number of rows across tables with huge data

Use stored procedures instead of heavy-duty queries. This can reduce network traffic, because your client will send to server only stored procedure name (perhaps with some parameters) instead of large heavy-duty queries text.

你可能感兴趣的:(Database Optimization)