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

Recommended indices #1

Open
ethier opened this issue Mar 31, 2014 · 0 comments
Open

Recommended indices #1

ethier opened this issue Mar 31, 2014 · 0 comments

Comments

@ethier
Copy link

ethier commented Mar 31, 2014

Once the db starts to grow it can get unwieldy for queries (very slow). I recommend adding the following indices to speed it up. Not sure if the docs are the correct place for this or not, so putting it here for discussion.

db["sleek_events"].ensureIndex({"ns": 1, "b": 1, "s.t": 1}, {"background": true});
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

1 participant