Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » SQL Anywhere database connections » Database file types » Additional dbspaces considerations

 

Preallocating database file space (Sybase Central)

When you create a new database file, you can preallocate database file space using Sybase Central. Preallocating space can improve performance for loading large amounts of data and keeps database files more contiguous.

Prérequis

You must have the MANAGE ANY DBSPACE system privilege.

Contexte et remarques

As you use a database, it automatically grows database files as needed. Rapidly-changing database files can lead to excessive file fragmentation on the disk, resulting in potential performance problems. As well, many small allocations are slower than one large allocation. If you are working with a database with a high rate of change, you can preallocate disk space for dbspaces or for transaction logs using Sybase Central.

Tip

Running a disk defragmentation utility after preallocating disk space helps ensure that the database file is not fragmented over many disjointed areas of the disk drive. Performance can suffer if there is excessive fragmentation of database files.

 Task
  1. In Sybase Central, use the SQL Anywhere 16 plug-in to connect to the database.

  2. In the left pane, click Dbspaces.

  3. In the right pane, right-click the dbspace and click Preallocate Space.

  4. Enter the amount of space to add to the dbspace. You can add space in units of pages, bytes, kilobytes (KB), megabytes (MB), gigabytes (GB), or terabytes (TB).

  5. Click OK.

Résultat

Database file space is preallocated.

 See also