-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure database indexes for Auth models and relations #3011
Comments
This was referenced Dec 8, 2016
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment, the authentication code (ACL, Roles, permissions) is making several relatively complex queries that are not backed by any database indices. This has two negative effects:
The patch #2368 proposed a solution that would fix Redis, but it's not clear whether it defines correct indices for SQL databases too.
We should run the auth code via a sample app, investigate the SQL/Redis/MongoDB queries being made by LoopBack and then figure out what are the right set of indices we need to create. Whether we need multiple indices (one per each column) or a single composite index instead.
See also #2368 (comment) and #2849 (comment)
The text was updated successfully, but these errors were encountered: