Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does index help in Mongo bitwise query

Tags:

mongodb

I learnt that bitwise query was introduced to MongoDB since 3.2.

ref: https://docs.mongodb.com/manual/reference/operator/query/bitsAllSet/#op._S_bitsAllSet

Will these queries be speed up by indexes on numeric fields? If so, how does it work?

like image 414
woodwind Avatar asked Dec 05 '25 15:12

woodwind


1 Answers

mongodb does not support index for bitwise query now https://jira.mongodb.org/browse/SERVER-24749;

like image 148
cow Avatar answered Dec 07 '25 10:12

cow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!