SIGN IN SIGN UP
payloadcms / payload UNCLAIMED

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.

0 0 13 TypeScript

docs(db-mongodb): note on indexing localized fields & per-locale growth (#13469)

Closes #13464

Adds a note to the Indexes docs for localized fields:
- Indexing a `localized: true` field creates one index per locale path
(e.g. `slug.en`, `slug.da-dk`), which can grow index count on MongoDB.
- Recommends defining explicit indexes via collection-level `indexes`
for only the locale paths you actually query.
- Includes a concrete example (index `slug.en` only).

Docs-only change.

---------

Co-authored-by: German Jablonski <43938777+GermanJablo@users.noreply.github.com>
C
chenxi-debugger committed
379ef87d8457f49c5b5375f9802ef78e0fc91de0
Parent: 9f7d8c6
Committed by GitHub <noreply@github.com> on 8/19/2025, 12:45:38 PM