Back

Indexes using relationship

  • 0
  • Databases
  • Cloud
EniXo
11 Oct, 2024, 18:19

Hello there ! :appwritecheers:

I was playing around with Database, Collections & Documents and I found an "issue" which isn't realy an issue but a missing feature I guess.

I have a collection "Brand(name: String)" and another one "Model(name: String, brand: Brand[ManyToOne]"

I've set a Unique index on brand.name and I wanted to add a index on (model.name, model.brand) but it seems that we can't use Relationship in Indexes.

Am I missing something ? :appwritebow:

TL;DR
Developers want to create an index for a collection but are unable to use relationships in indexes. This is currently a missing feature in the system.
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