Redundant database indexes created
Author: westhouseitCreated Sep 25, 2026Updated Sep 27, 2026
Describe the Bug
Selecting unique and index for a field creates two indexes. Since a data layer index is required for data integrity when requiring uniqueness, the index option should be displayed as checked and disabled when selecting unique in Data Studio. Selecting unique on a previously indexed field should drop the existing index and create a new unique index.
To Reproduce
Create a new field, e.g. url_title with Unique and Index options checked.
Directus Version
12.4.1
Hosting Strategy
Self-Hosted (Docker Image)
Database
PostgreSQL 18.4
Source: directus/directus