<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:03 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>[JAVA-341] On INSERT iterate over documents ONCE not TWICE</title>
                <link>https://jira.mongodb.org/browse/JAVA-341</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Currently DBApiLayer iterates through documents TWICE in case &apos;_id&apos;s have to be created ( &quot;shouldApply&quot; is true ): once to set &quot;_id&quot;s and the second time to create batch chunks. &lt;br/&gt;
This slows down the insert ( with any WriteConcern ).&lt;/p&gt;

&lt;p&gt;Attaching a patch that optimizes the INSERT: now documents are iterated only ONCE without changing a current behavior. &lt;/p&gt;

&lt;p&gt;/Anatoly&lt;/p&gt;

&lt;p&gt;P.S. I am currently testing with application level partitioning, so different partitions actually sent to the different mongoDs in real time ( even distribution ): &lt;a href=&quot;https://github.com/anatoly-polinsky/mongodb-write-performance-playground&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/anatoly-polinsky/mongodb-write-performance-playground&lt;/a&gt; and the patch does help to boost the performance.&lt;/p&gt;</description>
                <environment>N/A</environment>
        <key id="16507">JAVA-341</key>
            <summary>On INSERT iterate over documents ONCE not TWICE</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="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="tolitius">Anatoly Polinsky</reporter>
                        <labels>
                            <label>concurrency</label>
                            <label>insert</label>
                    </labels>
                <created>Sat, 30 Apr 2011 01:27:48 +0000</created>
                <updated>Tue, 31 Mar 2015 20:09:33 +0000</updated>
                            <resolved>Fri, 12 Jul 2013 18:42:24 +0000</resolved>
                                    <version>2.5.3</version>
                                    <fixVersion>3.0.0</fixVersion>
                                    <component>Performance</component>
                                        <votes>2</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="869355" author="jeff.yemin" created="Tue, 31 Mar 2015 20:09:33 +0000"  >&lt;p&gt;Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.&lt;/p&gt;</comment>
                            <comment id="380010" author="jeff.yemin" created="Fri, 12 Jul 2013 18:42:15 +0000"  >&lt;p&gt;Fixed in 3.0.x branch: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/fac7ede#L18R45&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/fac7ede#L18R45&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="11785" name="insert_to_only_pass_through_docs_ONCE_on_creating_batches_and_creating_IDs.patch" size="2886" author="tolitius" created="Sat, 30 Apr 2011 01:27:48 +0000"/>
                    </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|hrhc5z:</customfieldvalue>

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