SQL Server 6.5 Optimization TipsJune 17, 2002
Because SQL Server 6.5 database cannot automatically grow, you should
estimate how big the database will be. To derive a reasonable estimate for the database size, you should first estimate
the size of each table individually, and then add all the values obtained.
Because the SQL Server 6.5 transaction log cannot automatically grow, you
should estimate how large the transaction log will likely become.
The general rule of thumb for setting the transaction log size is
to set it to 20-25 percent of the database size. The smaller the size
of your database, the greater the size of the transaction log
should be, and vice versa. For example, if the estimated database
size is equal to 10 Mb, you can set the size of the transaction log
to 4-5 Mb, but if the estimated database size is over 500 Mb,
then 50 Mb should be enough for the size of the transaction log.
It can increase the speed of your queries and modify operations
by 20 percent or more.
This is the description:
If your queries contain subqueries, or GROUP BY, or ORDER BY clause, you
can increase their performance by placing the tempdb database into RAM.
In SQL Server 6.5, any database (except the master database) can span
multiple devices. If you want to ensure recoverability and reduce
contention, you should place the transaction log on a separate
device.
This can be useful to simplify administering and monitoring.
This will improve performance because separate threads will be created
to access the tables and indexes.
This will improve performance because when a table is accessed
sequentially, a separate thread is created for each physical device
on each disk array in order to read the table's data in parallel.
You can group user objects with similar maintenance requirements into
the same physical device. This can be useful to simplify administering
and monitoring.
This will improve performance because when a table is accessed
sequentially, a separate thread is created for each physical device
on each disk array in order to read the table's data in parallel.
It can be used to improve the speed of backup process and decrease the
backup size. In SQL Server 7.0 and higher, the LOAD TABLE statement is
no longer supported.
It can be used to store storage space. See this article for more details:
Optimization
Tips for MS SQL 6.5: Storage Nullable fields
Again, this can be used to store storage space. See this article for more details:
Optimization
Tips for MS SQL 6.5: Storage Nullable fields
If you use the OR logical operation to find rows from a MS SQL 6.5
table, and there is an index on the field for which values you use the OR
operation, then MS SQL 6.5 can use worktable with a dynamic index
on searchable fields instead of a simple index search. So, if the table is
very big, it can take a lot of time.
You can increase the speed of this query by dividing it into two select
statements and union these statements with the UNION ALL operator. For each
query the appropriate index will be used, and this way can increase
the speed of the new select statement by several times in comparison
with the first one.
See this article for more details:
Using
UNION ALL Statement in SQL Server 6.5.
|