Skip to content

Database: Collection names should be IDs #984

Closed

Description

@arnu515

🚀 Feature

In the database, the collection name should be its id, instead of giving a separate ID for it. This is how it is in Firebase

Have you spent some time to check if this issue has been raised before?

Yes

Have you read the Code of Conduct?

Yes

Pitch

This feature would be a life saver, because when I move from dev environment to production, the collection ids change, which makes it really annoying to change environment variables

Activity

  1. michaelgaultjr commented on Mar 19, 2021

    @michaelgaultjr

    Yeah, I'd almost consider this is an essential feature. Though I think instead of having the name be the id, the id should be modifiable and is autogenerated by default. That way it is consistent with the rest of the database, having a label/name and a key/id, and doesn't cause any breaking changes.

  2. TorstenDittmann commented on Mar 19, 2021

    @TorstenDittmann
    Contributor

    What would make sense to me is like an alias for the collection, that can potentially be modified afterwards - even when already referenced since in the endthe real id is the key.

    But that would come at a cost, since in the internals the collection ID is an index in MariaDB.

    We are planning a refactor on our Database Internals right now and this might be a good suggestion here: appwrite/rfc#21

  3. arnu515 commented on Mar 20, 2021

    @arnu515
    Author
  4. jasdvine commented on May 27, 2021

    @jasdvine

    +1 it'd be really helpful to be able to modify the ID of collections and documents

  5. eldadfux commented on May 27, 2021

    @eldadfux
    Member

    Update 27-05-21: We are actively testing custom IDs for both collections and documents 😍

  6. eldadfux commented on Aug 6, 2021

    @eldadfux
    Member

    Update 06-08-21: We have got the custom IDs PR merged. This feature is expected to be released as part of Appwrit 0.10.0.
    #1350

  7. linked a pull request that will close this issueFeat Custom ID #1350on Aug 6, 2021
  8. added
    waiting for release
    and removed on Aug 6, 2021
  9. eldadfux commented on Sep 3, 2021

    @eldadfux
    Member

    This feature is currently planned for 0.12

  10. edeuss commented on Oct 27, 2021

    @edeuss

    This would be great, currently the only thing holding me back from AppWrite Database

  11. eldadfux commented on Dec 13, 2021

    @eldadfux
    Member

    Custom IDs are ready and will be released as part of Appwrite 0.12.

  12. eldadfux commented on Jan 5, 2022

    @eldadfux
    Member

    This fix is now available as part of Appwrite 0.12 which is now officially released. You can learn more at: https://dev.to/appwrite/its-here-announcing-the-release-of-appwrite-012-5c8b

  13. removed
    waiting for release
    on Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions