<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:22:04 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-29883] &quot;|&quot; in query string occur into a full index scan, slow query</title>
                <link>https://jira.mongodb.org/browse/SERVER-29883</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;db.wd_data.find({&quot;path&quot;:{&quot;$in&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;/^\/PersonalWx\/Wx3001\/A&#26446;&#37995;&#32769;&#24072;&#21161;&#29702;6965&#21495;&#21016;&#36203;&#26976;\/WxTxl\/&#19977;119&#25195;&#21333;D!nG&#20808;&#29983;Super7&#26446;&#20808;&#29983;\//&amp;#93;&lt;/span&gt;}}&lt;/p&gt;

&lt;p&gt;vs&lt;/p&gt;

&lt;p&gt;db.wd_data.find({&quot;path&quot;:{&quot;$in&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;/^\/PersonalWx\/Wx3001\/A&#26446;&#37995;&#32769;&#24072;&#21161;&#29702;6965&#21495;&#21016;&#36203;&#26976;\/WxTxl\/&#19977;119&#25195;&#21333;D!nG|&#20808;&#29983;Super7&#26446;&#20808;&#29983;\//&amp;#93;&lt;/span&gt;}}&lt;/p&gt;

&lt;p&gt;the difference is the first one has no &quot;|&quot; in the query string, the second one does.&lt;br/&gt;
I will attach the explain() info, they show the difference&lt;/p&gt;</description>
                <environment></environment>
        <key id="398772">SERVER-29883</key>
            <summary>&quot;|&quot; in query string occur into a full index scan, slow query</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="dancer">dancer</reporter>
                        <labels>
                    </labels>
                <created>Wed, 28 Jun 2017 02:53:47 +0000</created>
                <updated>Sat, 29 Jul 2017 16:23:00 +0000</updated>
                            <resolved>Wed, 28 Jun 2017 12:31:44 +0000</resolved>
                                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1613821" author="dancer" created="Wed, 5 Jul 2017 09:01:00 +0000"  >&lt;p&gt;Since the issue is not fixed,I suggest user who want to match prefix to use &quot;$gte + $lt&quot; instead of regex.&lt;/p&gt;</comment>
                            <comment id="1608498" author="thomas.schubert" created="Wed, 28 Jun 2017 12:31:44 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dancer&quot; class=&quot;user-hover&quot; rel=&quot;dancer&quot;&gt;dancer&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the clarification. After review, we are going to continue to track this work in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16622&quot; title=&quot;RegEx query predicates using the | (vertical bar) character cannot use tight index bounds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16622&quot;&gt;SERVER-16622&lt;/a&gt;. For additional context, please see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20432&quot; title=&quot;$regex prefix search with escaped &amp;quot;|&amp;quot; should use tighter index bounds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20432&quot;&gt;&lt;del&gt;SERVER-20432&lt;/del&gt;&lt;/a&gt;, which describes the same issue as this ticket and points to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16622&quot; title=&quot;RegEx query predicates using the | (vertical bar) character cannot use tight index bounds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16622&quot;&gt;SERVER-16622&lt;/a&gt; as well.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20432?focusedCommentId=1051802&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1051802&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;David Storch&apos;s comment&lt;/a&gt; clarifies this decision:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;After reviewing this ticket, the engineering team responsible for the &quot;Querying&quot; component has decided to consider this a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16622&quot; title=&quot;RegEx query predicates using the | (vertical bar) character cannot use tight index bounds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16622&quot;&gt;SERVER-16622&lt;/a&gt;. Fixing the backslash-escaped &quot;|&quot; character case makes sense to do as part of the larger ticket, as this will require parsing the regular expression and analyzing the parse tree. From an engineering perspective, we would much rather use proper regex parsing than introduce a hack that special cases the string &quot;|&quot;.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1608306" author="dancer" created="Wed, 28 Jun 2017 03:32:04 +0000"  >&lt;p&gt;I have viewed the previous issue, But I don&apos;t think it is a duplicated issue.&lt;br/&gt;
In my case, regexes was used to match prefix.&quot;|&quot; was escaped(just a normal character),but mongodb still scan the whole index.&lt;br/&gt;
So it might be a new bug..&lt;/p&gt;</comment>
                            <comment id="1608292" author="thomas.schubert" created="Wed, 28 Jun 2017 03:00:53 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dancer&quot; class=&quot;user-hover&quot; rel=&quot;dancer&quot;&gt;dancer&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for reporting this issue. The work to improve this behavior is tracked in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16622&quot; title=&quot;RegEx query predicates using the | (vertical bar) character cannot use tight index bounds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16622&quot;&gt;SERVER-16622&lt;/a&gt;. Please feel free to vote for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16622&quot; title=&quot;RegEx query predicates using the | (vertical bar) character cannot use tight index bounds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16622&quot;&gt;SERVER-16622&lt;/a&gt; and watch it for updates.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="229979">SERVER-20432</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="175660">SERVER-16622</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="159761" name="explain1" size="3890" author="dancer" created="Wed, 28 Jun 2017 02:53:10 +0000"/>
                            <attachment id="159760" name="explain2" size="4169" author="dancer" created="Wed, 28 Jun 2017 02:53:10 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 28 Jun 2017 03:00:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 32 weeks 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 32 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dancer</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hta0nj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht1yx3:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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