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

create mongodb index over Device collection #1576

Open
AlvaroVega opened this issue Feb 7, 2024 · 3 comments
Open

create mongodb index over Device collection #1576

AlvaroVega opened this issue Feb 7, 2024 · 3 comments

Comments

@AlvaroVega
Copy link
Member

Component

No response

Is your feature request related to a problem? Please describe

over id, s, ss, apikey and maybe type

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

The systemd version you checked that didn't have the feature you are asking for

No response

@AlvaroVega
Copy link
Member Author

Similar to

Group.index({ apikey: 1, resource: 1 }, { unique: true });

Old index with unique over id was removed 08601b0

@KeshavSoni2511
Copy link
Contributor

Hi @AlvaroVega, is mongodb index required in

function load(db) {
If yes, should I raise a separate PR with the code changes.

@AlvaroVega
Copy link
Member Author

I have no inputs about an index is required for commands. IMHO if not sure not add index.

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

No branches or pull requests

2 participants