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

Use mongodb to match slugs #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

csandeep
Copy link

@csandeep csandeep commented Jun 8, 2018

While using this module with a large dataset I found a issue where this plugin will fetch records from mongo and then filter them out in code.

Specifically this query https://github.com/talha-asad/mongoose-url-slugs/blob/master/index.js#L159

This fix will use mongodb to filter these slugs instead.

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

Successfully merging this pull request may close these issues.

1 participant