Skip to content
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

Closed
bajtos opened this issue Dec 8, 2016 · 2 comments
Closed

Configure database indexes for Auth models and relations #3011

bajtos opened this issue Dec 8, 2016 · 2 comments

Comments

@bajtos
Copy link
Member

bajtos commented Dec 8, 2016

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)

@stale
Copy link

stale bot commented Aug 23, 2017

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.

@stale stale bot closed this as completed Sep 6, 2017
@stale
Copy link

stale bot commented Sep 6, 2017

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 CODEOWNERS file at the top-level of this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants