meteor-server-session
                                
                                
                                
                                    meteor-server-session copied to clipboard
                            
                            
                            
                        Mongo index
Collection.findOne({ 'key' : key });
Might be good to do an ensureIndex call for key.
I actually tried to do that, specific to text indexes but when I last tried it was a feature not supported with the current MongoDB version.
From what I understand, Mongo "text" indexes are for searching:
http://docs.mongodb.org/manual/core/index-text/
findOne({ 'key' : key }) is a regular query, not a search query, so it would benefit from a regular index?
Oh sorry, I just confused two repositories. I think that's a good idea. I'll let this open and add the call ensureIndex for the key field soon-ish.