blink icon indicating copy to clipboard operation
blink copied to clipboard

Username index is incorrectly setup

Open krtk6160 opened this issue 3 years ago • 2 comments

@dolcalmi had mentioned that our username index is setup incorrectly. I ran .explain() in mongosh on some of the queries that use username to lookup users, and found that they indeed do not make use of the username index.

@dolcalmi How should this be fixed?

krtk6160 avatar Mar 18 '22 00:03 krtk6160

I think we should use Case Insensitive Index but also we need to update username query (without regex)

dolcalmi avatar Mar 18 '22 02:03 dolcalmi

could we get case insensitive username with proper index still? that's a useful feature to set the case when you set up a username. I know it makes indexing a lot more complex.

nicolasburtey avatar Mar 18 '22 19:03 nicolasburtey

fixed

dolcalmi avatar Sep 18 '23 14:09 dolcalmi