Skip to content
Back

Is an index needed on $id get queries?

  • 0
  • Databases
Lexy
7 Mar, 2025, 13:37

Do I need to create a key index for "$id" when fetching a document by $id?

TL;DR
Developers are asking if an index is necessary for "$id" when querying documents. It is not needed as the ID field is automatically indexed in most databases for efficient retrieval.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more