SQL Server files automatically grow those things

Source: Internet
Author: User

Method 1,

Set the file growth to a fixed size. such as FileGrowth = 100MB;

--------------------------------------------------------------------------------------------------------------- -------------------------------------------

Data file growth notes,

For example, table T is built on files File1 and file2. File1 file2 each have 500MB of free space. It is very possible to insert 100MB data into a table file1,file1 each insert

50MB. But if you only insert 1MB data it is very likely that this 1MB data is only in the File1 file. In principle, the data being inserted is divided by the proportion of free space

For example, file1 space 900M file2 idle 100MB, now to insert 100MB data so that it will be inserted on the file1 90mb,file2 inserted 10MB;

And when two files don't have free space, SQL Server will automatically grow by looking for one of the files itself. If the data file growth has not been completed within a certain period of time

This increase will fail. This timeout is typically 15s. So to file a reasonable growth size is very useful small database is generally set to 80M large point can be set to 160MB;

Log file Growth Description,

If more than one log file is full, SQL Server grows the current log file. To ensure the continuity of the log. Because the logs are guaranteed to be contiguous, SQL Server only

A log file can be written to. Therefore, multiple log files cannot be played to improve IO purposes.

SQL Server files automatically grow those things

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.