# OptimizeVaultIndexKey

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OptimizeVaultIndexKey/

The identity of a database index that the thorough optimization defragments.

- **Full name:** `MFiles.OptimizeVaultIndexKey`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-table_or_view"></a>`table_or_view` | `string` | 1 | The table or view of the index. |
| <a id="f-index"></a>`index` | `string` | 2 | The name of the index. |

<a id="used-in-fields"></a>

## Used in fields

- [`OptimizeVaultJobOutputInfo.completed_indexes`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OptimizeVaultJobOutputInfo/index.md#f-completed_indexes): Indexes that the run has defragmented (a set; order has no meaning).
