<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:10 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-2172] Support Batching Mixed Operations Against Same Collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-2172</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Allow mixed operations (insert, update, delete) on the same collection to be sent to the server in a single write command.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13848">SERVER-2172</key>
            <summary>Support Batching Mixed Operations Against Same Collection</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                            <label>oneshottxn</label>
                    </labels>
                <created>Thu, 2 Dec 2010 16:09:49 +0000</created>
                <updated>Tue, 6 Dec 2022 05:46:49 +0000</updated>
                                                                            <component>Usability</component>
                                        <votes>60</votes>
                                    <watches>51</watches>
                                                                                                                <comments>
                            <comment id="1571305" author="asya" created="Mon, 15 May 2017 16:14:55 +0000"  >&lt;p&gt;There are multiple things that are discussed in the comments of this ticket, some of which are already implemented, and others may be tracked by different tickets.   I&apos;m attempting to summarize the state of it here:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Sending batches of same operations against a single collection: implemented in 2.6 &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4004&quot; title=&quot;Bulk Upsert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4004&quot;&gt;&lt;del&gt;SERVER-4004&lt;/del&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Sending batches of mixed operations against same collection: tracked in this ticket&lt;/li&gt;
	&lt;li&gt;Batched operations against separate collections: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20211&quot; title=&quot;Cross collection batch operation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20211&quot;&gt;SERVER-20211&lt;/a&gt;&lt;br/&gt;
   this was initially marked as duplicate of this ticket.  I re-opened it to track that feature separately, and made it dependent on this ticket being implemented/resolved&lt;/li&gt;
	&lt;li&gt;All-or-nothing batches of operations, also known as transactions are out of scope for this ticket and are tracked separately by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2804&quot; title=&quot;Transactional write-batch support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2804&quot;&gt;&lt;del&gt;SERVER-2804&lt;/del&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I updated description of this ticket to clarify that it&apos;s only tracking sending batches of mixed operations for a single collection (inserts, updates and removes).&lt;/p&gt;</comment>
                            <comment id="1024150" author="nick@innsenroute.com" created="Tue, 8 Sep 2015 15:20:08 +0000"  >&lt;p&gt;Adding my name to the list who would find this useful.&lt;/p&gt;</comment>
                            <comment id="1023110" author="dbot77" created="Sat, 5 Sep 2015 20:13:31 +0000"  >&lt;p&gt;For me this is the most needed feature in mongodb. To be unable to do transactions forces you to write complex transactions yourself or switch to SQL.&lt;/p&gt;</comment>
                            <comment id="275273" author="justanyone" created="Mon, 25 Feb 2013 16:10:08 +0000"  >&lt;p&gt;I would like to vote for a simple version of this:  BATCH UPDATES.  That is, I&apos;m issuing thousands of update statements a second.  I would like to send them as a list of updates rather than do them one by one, with the latency involved in that.  &lt;/p&gt;

&lt;p&gt;Currently there is support for batch inserts.  This feature may tie-in with that functionality.&lt;/p&gt;

&lt;p&gt;Playing devil&apos;s advocate to my own argument, I can see a possible complication.  I have a sharded, replicated collection.  So, let&apos;s say I send in a list of updates (each of a single separate document indexed by _id).  The router (mongos) would have to split the updates to separate lists to go to their respective shards. &lt;/p&gt;

&lt;p&gt;Other than that, it seems a straightforward performance increaser.&lt;/p&gt;

&lt;p&gt;Re: failures, handle it the same as batch inserts, insert all possible records/documents and return data on which ones failed, or whatever is the easiest functionality to implement and I&apos;ll cope with the downsides.&lt;/p&gt;
</comment>
                            <comment id="163954" author="maverin" created="Thu, 13 Sep 2012 15:22:45 +0000"  >&lt;p&gt;Allowing batch queries would also resolve &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-432&quot; title=&quot;server side expansion of DBRefs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-432&quot;&gt;&lt;del&gt;SERVER-432&lt;/del&gt;&lt;/a&gt; (server side expansion of DbRefs), and make it much easier to create a query preprocessor that would efficiently allow for more complex queries and eliminate some limitations (eg. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5937&quot; title=&quot;Remove document size limits by transparently splitting it (at least for arrays)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5937&quot;&gt;SERVER-5937&lt;/a&gt; (splitting documents to overcome size limitations)).&lt;/p&gt;

&lt;p&gt;I can imagine it would be hard because you would need to support multiple cursors per connection, but even if initially you just limited it to returning all the data in one BSON it would still reap a lot of benefits.&lt;/p&gt;</comment>
                            <comment id="152605" author="zippoxer" created="Sun, 12 Aug 2012 11:22:16 +0000"  >&lt;p&gt;@Caleb, I agree. Fail-safe systems are a nightmare to build with MongoDB. &lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/ENpMJXEUJnE%5B1-25%5D&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Here&lt;/a&gt; described a problem that is similar to mine: can&apos;t roll back a set of writes (insertions/updates) when one failed. I needed this in several applications, but I gave up and left them non-fail-safe. I imagine that&apos;s what most people do when they encounter this problem, but they don&apos;t when the worst possible failure is a disaster (like a payment that was not properly rewarded). Then they do a workaround.&lt;/p&gt;

&lt;p&gt;The workarounds are terrible. The most complex part of the application becomes the database, which was the simplest before.&lt;/p&gt;

&lt;p&gt;Why won&apos;t you admit that&apos;s a serious problem?&lt;/p&gt;</comment>
                            <comment id="146699" author="calebjones" created="Tue, 24 Jul 2012 16:56:59 +0000"  >&lt;p&gt;I disagree with the &quot;Minor&quot; Priority. This would be a &lt;b&gt;huge&lt;/b&gt; feature add similar in impact to the aggregation framework.&lt;/p&gt;

&lt;p&gt;Probably the #1 complaint or deterrent people cite with MongoDB is the lack of JOINs. Yes, that is part of the trade-offs with the solution. But when de-normalization is undesirable, being able to perform a batch of operations would avoid the bursting of one-by-one commands in loops and could overcome some of the reservations people have in adopting MongoDB.&lt;/p&gt;

&lt;p&gt;Another use case impacted by this:&lt;br/&gt;
I&apos;m currently working on processing a stream of data to convert into mongo insert/update/delete commands. I was disappointed that I have to fire off the commands one at at time instead of queuing them up into batches to reduce round-trips to the server.&lt;/p&gt;

&lt;p&gt;Hopefully this can get a bump in priority.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="23169">SERVER-4004</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="227755">SERVER-20211</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="23169">SERVER-4004</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.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>Tue, 24 Jul 2012 16:56:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 39 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-4004'>SERVER-4004</a></s>]]></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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 39 weeks, 2 days 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>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-query-optimization</customfieldvalue>
            <customfieldvalue>calebjones</customfieldvalue>
            <customfieldvalue>dbot77</customfieldvalue>
            <customfieldvalue>maverin</customfieldvalue>
            <customfieldvalue>justanyone</customfieldvalue>
            <customfieldvalue>zippoxer</customfieldvalue>
            <customfieldvalue>nick@innsenroute.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpap3:</customfieldvalue>

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

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

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