Skip to content

Session Lookup should use indexes #8290

Open
@dblythy

Description

@dblythy

New Issue Checklist

Issue Description

There are no indexes created the _Session class. This means that the default index of _id is used when session tokens are looked up

Steps to reproduce

Create a new user.

Actual Outcome

No indexes are created. An index on _session_token could increase the performance of session lookups

Expected Outcome

Parse Server should use hint / indexes when looking up session tokens

Environment

Server

  • Parse Server version: 5.3.0
  • Operating system: macos
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): localhost

Database

  • System (MongoDB or Postgres): mongo
  • Database version: 5.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): atlas

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): js
  • SDK version: 3.5.0

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$20Bounty applies for fixing this issue (Parse Bounty Program)type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions