Search code examples
parse-platformparse-server

How are document fields indexed in parse-server?


Are they ALL indexed by default? Should I index them? If so, how? By directly talking to mongodb?

Thanks!


Solution

  • When you use parse-server you must maintain the DB indexes on your own.

    Parse.com did it for you but since parse.com shut down their service and open source it (parse-server) you need to maintain the indexes on your own.

    You have multiple options to create indexes in MongoDB:

    1. via MongoDB shell
    2. via MongoDB client tools (e.g. Compass, Robomongo etc.)
    3. via code

    The must easiest option is 2