Skip to content
Back

appwrite indexes not working (?

  • 0
  • Databases
dei8bit
23 Apr, 2026, 21:41

i have this index:

TypeScript
       "indexes": [
                {
                    "key": "single-user-per-event",
                    "type": "unique",
                    "status": "available",
                    "columns": [
                        "eventID",
                        "userID"
                    ],
                    "orders": [
                        "asc",
                        "asc"
                    ]
                },
            ]

but for some reason i can continue creating multiple arrow with duplicate userID and eventID and appwrite dosen't get my an error...

as you can see in the picture 2, there're repeated userID and eventID in many rows

TL;DR
The developer is facing an issue where their indexes in Appwrite are not working properly, allowing multiple rows with duplicate `userID` and `eventID` to be created without generating an error. Solution: One possible solution could be to ensure that the unique index is applied correctly in the database schema settings of the Appwrite platform. Double-check the configuration and verify that the unique constraint is enforced on the `userID` and `eventID` columns to prevent duplicates.
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