Skip to content

Disable case-insensitive index on _User #8492

Open
@EraserKing

Description

@EraserKing

New Feature / Enhancement Checklist

Current Limitation

Currently while Parse Server is starting up, on MongoDB, it tries to create a few indexes with case-sensitive on, on collection _User.

However not all MongoDB supports case-sensitive, for example, Azure Cosmos DB for Mongo does not support: Supported Indexes. This leads to Parse Server connecting to such database directly fails to start.

Feature / Enhancement Description

With switches of options / environment toggled on, skipping validating / creating such indexes. I see the options in PR #5634 but I don't know why that's not implemented finally.

Example Use Case

  1. Add switches in options (just like PR Case insensitive signup #5634)
  2. Check the switches in Controllers - DatabaseController - performInitialization method
  3. Skip some calls to ensureIndex when the switches in options are turned on

Alternatives / Workarounds

No. We cannot create case-insensitive indexes on Azure Cosmos DB and we cannot disable creating such indexes in Parse. Totally not working.

3rd Party References

Not necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions