In recent days, met before a project database maintenance, data has only one million, the program starts intermittent cramps. Database optimization involves too much content, the only knowledge points to a record here. . .
1. The amount of data to a certain extent, the type of field will affect "reads the pressure disk" certain efficiency.
2.smalldatetime and datetime difference:
2.1datetime occupies 8 bytes, the accuracy of 3.33 ms, the time from 1753.1.1 to 9999.12.31
2.2smalldatetime occupies 4 bytes, an accuracy of 1 minute from the time 1900.1.1 to 2079.6.6
PS: Recommend this man wrote a blog post: http: //download.csdn.net/detail/nanfeiyannan/8382051