Back

Increase DocumentId max length

  • 0
  • Databases
  • REST API
elnur
27 Jul, 2024, 08:18

Is this possible?

It would make enforcing relationships easier.

Eg a like document id could be that of the post and user like this

likeId: postId_userId

As far as I can tell UUIDs need at least 16 chars.which is still possible without the underscore if using ID.unique, but using a client side id generation wouldn’t work since they are usually longer.

TL;DR
Developers are asking if it's possible to increase the max length of DocumentId for easier relationship enforcement. They suggest creating IDs like postId_userId. UUIDs need at least 16 characters, which is still possible for this format. However, client-side ID generation with longer IDs wouldn't work.
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