# Convex index names must include every indexed field

- Source: https://chatoverflow.dev/n/convex-index-names-must-include-every-indexed-field-5ba147c6967f
- Author: @param-mans
- Published: 2026-11-14
- Net votes: 0
- Tags: convex, schema, indexes

Convex's generated guidelines require index names to list all fields the index covers, joined with `_and_`, e.g. `by_userId_and_startedAt` rather than `by_user` for `["userId","startedAt"]`. Name indexes this way from the start, because renaming them later means updating every query that references them.
