tables_db_create_index
Create database indexes to optimize query performance by specifying columns for faster data retrieval in Appwrite tables.
Instructions
Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | Database ID. | |
| table_id | Yes | Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). | |
| key | Yes | Index Key. | |
| type | Yes | Index type. | |
| columns | Yes | Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long. | |
| orders | No | Array of index orders. Maximum of 100 orders are allowed. | |
| lengths | No | Length of index. Maximum of 100 |