<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:25 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-1222] Insert-or-ignore support</title>
                <link>https://jira.mongodb.org/browse/SERVER-1222</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If insert is attempted but record with such _id already exists, it&apos;s ignored, except for &quot;E11000 duplicate key error index&quot; messages in server logs.&lt;/p&gt;

&lt;p&gt;It would be nice to be able to indicate that ignoring duplicates is actually intended behavior, to avoid such errors.&lt;/p&gt;

&lt;p&gt;A related issue is that if a bulk insert is attempted, and any of the _ids already exists, the entire batch fails. This could be covered by the same mechanism of indicating that duplicate _ids should be silently ignored.&lt;/p&gt;

&lt;p&gt;Support for this option could then be added to mongoimport etc.&lt;/p&gt;

&lt;p&gt;This is not upsert - no fields in existing records should be overwritten.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12122">SERVER-1222</key>
            <summary>Insert-or-ignore support</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="taw">Tomasz Wegrzanowski</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Jun 2010 15:51:00 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:35 +0000</updated>
                            <resolved>Tue, 16 Nov 2010 19:37:59 +0000</resolved>
                                                    <fixVersion>1.7.3</fixVersion>
                                                        <votes>5</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="20362" author="eliot" created="Tue, 16 Nov 2010 19:37:59 +0000"  >&lt;p&gt;duplicate key errors no longer show in the log, as its not a system error.&lt;br/&gt;
i think that solves this issue&lt;/p&gt;</comment>
                            <comment id="20357" author="mrjjwright" created="Tue, 16 Nov 2010 18:37:08 +0000"  >&lt;p&gt;Any word on this or known workarounds?  Currently I guess the approach would be to try a bulk insert and if it fails because of a duplicate error, remove the offending record from the batch and try again.  Is there another way?&lt;/p&gt;</comment>
                            <comment id="16394" author="eliot" created="Mon, 2 Aug 2010 21:24:13 +0000"  >&lt;p&gt;That alone won&apos;t work in general.&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;we need it to be an option, not default&lt;/li&gt;
	&lt;li&gt;we need to aggregate errors for getLastError()&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="16387" author="terryjsmith" created="Mon, 2 Aug 2010 20:16:28 +0000"  >&lt;p&gt;I actually had to solve this issue in our existing install and wanted to share our solution if it&apos;s a quick fix for you guys to add:&lt;/p&gt;

&lt;p&gt;         while ( d.moreJSObjs() ) {&lt;br/&gt;
                        // Check here for a dup key on mass inserts&lt;br/&gt;
                        try &lt;/p&gt;
{
                                BSONObj js = d.nextJsObj();
                                uassert( 10059 , &quot;object to insert too large&quot;, js.objsize() &amp;lt;= MaxBSONObjectSize);
                                theDataFileMgr.insert(ns, js, false);
                                logOp(&quot;i&quot;, ns, js);
                        }
&lt;p&gt;                        catch ( AssertionException&amp;amp; e ) &lt;/p&gt;
{
                                OpDebug&amp;amp; debug = op.debug();
                                StringBuilder&amp;amp; ss = debug.str;

                                // Assume that one of the inserts failed, but continue so we don&apos;t lose the whole batch
                                problem() &amp;lt;&amp;lt; &quot; Caught Assertion in &quot; &amp;lt;&amp;lt; opToString(op) &amp;lt;&amp;lt; &quot; , continuing&quot; &amp;lt;&amp;lt; endl;
                               ss &amp;lt;&amp;lt; &quot; exception &quot; + e.toString();
                               mongo::log() &amp;lt;&amp;lt; ss.str() &amp;lt;&amp;lt; endl;
                        }
&lt;p&gt;	}&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>Mon, 2 Aug 2010 20:16:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 14 weeks, 1 day 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 14 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mrjjwright</customfieldvalue>
            <customfieldvalue>terryjsmith</customfieldvalue>
            <customfieldvalue>taw</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrki7b:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21953</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>
                                

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

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