Missing index on `key` property on Mongodb
Closed this issue ยท 3 comments
gkampitakis commented
I created an issue to the original repository just in case someone has the same issue. What was noticed is that the library creates an index
node_acl/lib/mongodb-backend.js
Line 145 in 966d079
useSingle=false
we are not using this index as we are querying with just the key
meaning we are not using the index resulting to slow queries. Maybe the index could respect the useSingle
flag and create the correct index.
node_acl/lib/mongodb-backend.js
Line 121 in 966d079
koresar commented
Sound like a good idea.
Would you please a PR? We love PRs!
gkampitakis commented
I am happy to ๐ , I will try to work on it today and send a pr
koresar commented
Thanks! Sorry for the delay. PR reviewed, merged, published as v2.0.1