mongoid/mongoid — Issue #1591: Queries take long time
Author: amrnt
Created: 2012-01-13 09:39:27+00:00
State: open

I use Devise + Mongoid to authenticating my Rails app. Lately, when I try to sign in/out the request takes as long as 30,000 Millisecond. I found I have 200,000+ document in my DB.

After some debugging, I can see that lots of queries are being executed before/after making the POST request.

Am I missing something?