Immich reindexes face_index and clip_index each startup

Each time I start immich a reindex is performed. Is that intentional? I wasn't able to figure out what checks are in place to verify my database directly. Once reindexing completes (about 45min) then everything runs normally without error.

Initializing Immich v1.134.0
DEBUG: cgroup v2 detected.
Detected CPU Cores: 5
Starting api worker
[Nest] 16  - 06/17/2025, 8:32:21 PM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 16  - 06/17/2025, 8:32:21 PM     LOG [Api:DatabaseRepository] targetLists=1, current=1 for face_index of 89861 rows
[Nest] 16  - 06/17/2025, 8:32:22 PM     LOG [Api:DatabaseRepository] targetLists=2048, current=1 for clip_index of 1025653 rows
[Nest] 16  - 06/17/2025, 8:32:22 PM     LOG [Api:DatabaseRepository] Reindexing clip_index


Docker compose:
attached


ENV:
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=library

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=postgres/data

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=v1.134.0

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=
DB_DATABASE_NAME=immich
Was this page helpful?