3 ms·
Looks really nice, authentication is something many are doing wrong and it's important to have good templates One question, why not use ensureIndex ? is there
by eranation 14y ago
Looks really nice, authentication is something many are doing wrong and it's important to have good templates
One question, why not use ensureIndex ? is there a real performance running it once it's created?
- xavi 14y agoThanks, and sorry but I don't understand what you mean about ensureIndex, which is actually used by calling CongoMongo's add-index! in https://github.com/xavi/noir-auth-app/blob/master/src/noir_auth_app/models/user.clj https://github.com/xavi/noir-auth-app/blob/master/src/noir_a... which in turn calls ensureIndex in the underlying Java driver, see https://github.com/aboekhoff/congomongo/blob/master/src/somnium/congomongo.clj https://github.com/aboekhoff/congomongo/blob/master/src/somn...
- eranation 14y agogood, this explains it :)