<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:48 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>[CSHARP-1149] Performance difference between Query.Where and Query.EQ</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1149</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am performing many update operations and I see a performance impact when using Query.Where instead of Query.EQ.&lt;br/&gt;
The queries are:&lt;/p&gt;

&lt;p&gt;Query&amp;lt;SomeObject&amp;gt;.Where(x =&amp;gt; x.Id == someId)&lt;br/&gt;
Query&amp;lt;SomeObject&amp;gt;.EQ(x =&amp;gt; x.Id, someId)&lt;/p&gt;

&lt;p&gt;Creating 10000 queries takes 115ms when using the EQ query and 4500ms when using the Where query.&lt;/p&gt;

&lt;p&gt;Why is there a difference between the two? Could you explain what the difference is?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Eitam&lt;/p&gt;</description>
                <environment>Windows</environment>
        <key id="174452">CSHARP-1149</key>
            <summary>Performance difference between Query.Where and Query.EQ</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="eitamb">Eitam Belahousky</reporter>
                        <labels>
                            <label>driver</label>
                            <label>performance</label>
                            <label>question</label>
                    </labels>
                <created>Sun, 14 Dec 2014 12:40:23 +0000</created>
                <updated>Fri, 5 Apr 2019 13:58:07 +0000</updated>
                            <resolved>Sat, 4 Apr 2015 22:23:12 +0000</resolved>
                                    <version>1.9.1</version>
                                                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="785617" author="craiggwilson" created="Sun, 14 Dec 2014 13:25:47 +0000"  >&lt;p&gt;There shouldn&apos;t be much of a difference at all, especially that noticeable. Perhaps the code you are using to benchmark this would be helpful so we can attempt a repro.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs4rr3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>152848</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>