SQLite Maestro online Help
Indexes
Indexes are primarily used to enhance database performance (though inappropriate use may result in slower performance). The key field(s) for the index are specified as column names. Multiple fields can be specified if the index method supports multicolumn indexes.
In SQLite Maestro index management is accomplished with the aid of Index Editor. It is available at the appropriate step of Create Table Wizard, from Table Editor, or from the corresponding nodes of the explorer tree.
The sections below describe each of these actions in detail.
Table indexes are created within the Index Properties dialog window. In order to open the dialog you should either
| • | open the table in Table Editor and the Indexes tab there; |
| • | press the Insert key or select the Add New Index... item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar) |
or
| • | select the table in the explorer tree and use the Create New Index popup menu item |
or
| • | select the table Indexes node or any index within the table in the explorer tree and use the Add New Index... popup menu item. |
|
Table indexes are edited within the Index Properties dialog window. In order to open the dialog you should either
| • | open the table in Table Editor and the Indexes tab there; |
| • | press the Enter key or select the Edit Index item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar) |
or
| • | select the index to edit in the explorer tree and use the Edit Index popup menu item. |
You can change the name of the index using the Rename Index dialog. To open the dialog you should either
| • | select the index to rename in the explorer tree; |
| • | select the Rename Index item from the popup menu |
or
| • | open the table in Table Editor and the Indexes tab there; |
| • | select the index to rename; |
| • | select the Rename Index item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar). |
|
To drop the table index:
| • | select the index to drop in the explorer tree; |
| • | select the Drop Index item from the popup menu |
or
| • | open the table in Table Editor and the Indexes tab there; |
| • | press the Delete key or select the Drop Index item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar) |
and confirm dropping in the dialog window.
|
See also: Table Editor, Foreign Key Editor