<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:07:19 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-24749] Add index support for Bitwise query operations </title>
                <link>https://jira.mongodb.org/browse/SERVER-24749</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #eeeeee;border-color: #cccccc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-color: #cccccc;background-color: #6cb33f;&quot;&gt;&lt;b&gt;Issue Status as of Feb 11, 2020: Future Consideration&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #eeeeee;&quot;&gt;
&lt;p&gt;Indexes for bitwise operations currently are not supported and the documentation for Bitwise Query Operators contains this information.&lt;/p&gt;

&lt;p&gt;Support for this capability is not a trivial task, and currently, it is not on the short-term roadmap.&lt;br/&gt;
We understand that this feature is very desirable and appreciate votes and comments from the community.&lt;br/&gt;
&lt;a href=&quot;https://community.mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Developer Community Forum&lt;/a&gt; is a good place to discuss this problem. Also, &lt;a href=&quot;https://explainextended.com/2009/10/01/bitwise-operations-and-indexes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; is an interesting article with some useful information about potential optimizations.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h6&gt;&lt;a name=&quot;Originaldescription&quot;&gt;&lt;/a&gt;Original description&lt;/h6&gt;
&lt;p&gt;Creating this issue to include support use of indexes on Bitwise query operations.  As mentioned by Ramon Fernandez in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3518&quot; title=&quot;Bitwise query operators&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3518&quot;&gt;&lt;del&gt;SERVER-3518&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;User Case:&lt;br/&gt;
We are heavily using  Bitwise query operators to pull count out of collection of 40 million records. Query performance as expected but CPU spikes when queries are running. &lt;/p&gt;
</description>
                <environment></environment>
        <key id="296164">SERVER-24749</key>
            <summary>Add index support for Bitwise query operations </summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-query-optimization">Backlog - Query Optimization</assignee>
                                    <reporter username="pateld982@gmail.com">Dharmesh Patel</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Jun 2016 15:21:49 +0000</created>
                <updated>Thu, 6 Apr 2023 18:00:22 +0000</updated>
                                                                            <component>Index Maintenance</component>
                                        <votes>25</votes>
                                    <watches>40</watches>
                                                                                                                <comments>
                            <comment id="3277352" author="jonathan@jode.com.br" created="Thu, 9 Jul 2020 14:28:08 +0000"  >&lt;p&gt;It is kinda weird to be able to query with bitwise operators but not index them.&lt;/p&gt;

&lt;p&gt;I mean, what is the point to have an operator that you can never use in production?&lt;/p&gt;

&lt;p&gt;this would spare us from creating so many boolean fields...&lt;/p&gt;</comment>
                            <comment id="2846378" author="thomas@bajix.com" created="Sat, 8 Feb 2020 04:44:39 +0000"  >&lt;p&gt;I would deeply appreciate an update on the status of this. I&apos;ve built a number of algorithms in anticipation of this being included and without this index my entire project is imperiled. I was aware of this issue and proceeded anyway because I didn&apos;t think this would be necessary for at least 3 years, but that was in 2017 so IDK. I&apos;ve actually wanted this since 2014, but I digress. I really hope this happens in the next 6 months.&lt;/p&gt;</comment>
                            <comment id="2710962" author="thomas@bajix.com" created="Tue, 7 Jan 2020 22:50:27 +0000"  >&lt;p&gt;I&apos;ve been waiting for this feature for over two years now... is this going to ever get implemented??&lt;/p&gt;</comment>
                            <comment id="2385460" author="dgvozd@dev-team.com" created="Sat, 24 Aug 2019 23:26:00 +0000"  >&lt;p&gt;+1 vote for this feature!&lt;/p&gt;

&lt;p&gt;And I think that Igor&apos;s comment takes + 100500 votes&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="2108313" author="crunk1@gmail.com" created="Tue, 8 Jan 2019 10:13:01 +0000"  >&lt;p&gt;Just throwing my vote on this. This would be soooo helpful!&lt;/p&gt;</comment>
                            <comment id="2037410" author="jonathan-rezende" created="Mon, 22 Oct 2018 14:35:18 +0000"  >&lt;p&gt;This would be so nice to have.&lt;/p&gt;

&lt;p&gt;Unfortunately is still in backlog.&lt;/p&gt;</comment>
                            <comment id="1754025" author="igor.nov" created="Sun, 17 Dec 2017 15:38:33 +0000"  >&lt;p&gt;Worst part is that the documentation mentions nothing about the fact that indexing is not supported for bitwise query operations. So you spend weeks on that system improve that you sure will blow all your teammates minds and grant you any 3 wishes from the company genie. On the small scale development database it&apos;s working just fine and you are not noticing that it IS NOT USING THE INDEX. Then you switch to bigger database and cant figure out what is wrong. Then you spend hours to find out why your query planner does not using the index, even after you hint it. Then you find this issue which is 1.5 years old and you can&apos;t understand why such an important issue is not a priority. Meanwhile your team member laugh at you but your boss doesn&apos;t think this is funny so you get fired. Your wife leaves you and takes the kids. You start smoking and while thinking on indexing, the cigarette falls on the couch starting a fire. While your house is burning you remember that old pc in the basement that had 1265 bitcoins from the days you where mining it. You just stand there and laugh. They find you and take you to the psych ward. You spend the rest of your days indexing numbers on those soft walls. You die.&lt;/p&gt;</comment>
                            <comment id="1749278" author="fomurilo" created="Tue, 12 Dec 2017 03:19:14 +0000"  >&lt;p&gt;Nothing yet? 2017 (almost 2018) and I am with the same problem. Impossible use bitwise with mongodb. Any alternative?&lt;/p&gt;</comment>
                            <comment id="1378070" author="javier" created="Wed, 7 Sep 2016 06:45:18 +0000"  >&lt;p&gt;Hi Thomas!&lt;/p&gt;

&lt;p&gt;Thanks for your reply &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Ok, I see, excuse my ignorance. yes, I voted and watching this ticket &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thanks!!&lt;/p&gt;

&lt;p&gt;Jaiver.&lt;/p&gt;</comment>
                            <comment id="1377343" author="thomas.schubert" created="Tue, 6 Sep 2016 15:57:00 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Javier&quot; class=&quot;user-hover&quot; rel=&quot;Javier&quot;&gt;Javier&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The fixVersion is set to &quot;planned but not scheduled,&quot;  which indicates that this ticket is currently not scheduled for any future releases. &lt;/p&gt;

&lt;p&gt;I see you have already voted for the issue and are watching the ticket - the fixVersion will be updated when the schedule for this improvement changes.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1371758" author="javier" created="Tue, 30 Aug 2016 12:51:56 +0000"  >&lt;p&gt;Hi Thomas!!&lt;/p&gt;

&lt;p&gt;Any update about this new feature?, support indexes on Bitwise is very important for my project too &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thanks!!&lt;/p&gt;

&lt;p&gt;Kind regards.&lt;br/&gt;
Javier.&lt;/p&gt;</comment>
                            <comment id="1304424" author="thomas.schubert" created="Thu, 23 Jun 2016 17:35:44 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pateld982%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;pateld982@gmail.com&quot;&gt;pateld982@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for creating this ticket - I&apos;m marking it to be scheduled during the next round of planning. &lt;/p&gt;

&lt;p&gt;Please continue to watch for updates.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="20399">SERVER-3518</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="473744">DOCS-11140</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>12.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25126"><![CDATA[Query Optimization]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 23 Jun 2016 17:35:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 30 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 30 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-query-optimization</customfieldvalue>
            <customfieldvalue>dgvozd@dev-team.com</customfieldvalue>
            <customfieldvalue>pateld982@gmail.com</customfieldvalue>
            <customfieldvalue>igor.nov</customfieldvalue>
            <customfieldvalue>Javier</customfieldvalue>
            <customfieldvalue>jonathan@jode.com.br</customfieldvalue>
            <customfieldvalue>jonathan-rezende</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>fomurilo</customfieldvalue>
            <customfieldvalue>crunk1@gmail.com</customfieldvalue>
            <customfieldvalue>thomas@bajix.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk4fz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr2enb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hseu8v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>