<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:06:53 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>[CXX-2742] Consider addition of empty() to mongocxx::bulk_write</title>
                <link>https://jira.mongodb.org/browse/CXX-2742</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;The mongocxx::bulk_write class is at present write-only; one can only append() to it.&lt;/p&gt;

&lt;p&gt;Execution of an empty bulk_write is illegal and will result in an exception.&lt;/p&gt;

&lt;p&gt;It would be convenient if this class were to expose a bool empty() const function, or, alternately, an explicit boolean conversion operator, by which to determine that it&apos;s valid or invalid for execution.&lt;/p&gt;

&lt;p&gt;Commonly, when dealing with bulk writes, one is attempting to collate writes for performance, and execution of collated writes by a background thread is a reasonable implementation choice. In that our purported background thread presumably has no direct knowledge of the origin of the bulk_write operations it&apos;s being handed, addition of this support to bulk_write would simplify such implementations in that the thread could validate the bulk_write prior to calling execute().&lt;/p&gt;

&lt;p&gt;Absent this support, one tends to build up a lot of scaffolding to avoid empty bulk_write operations in a generic context such as the one described.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2431533">CXX-2742</key>
            <summary>Consider addition of empty() to mongocxx::bulk_write</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="-1">Unassigned</assignee>
                                    <reporter username="alb@neptunesystems.com">Allan Bazinet</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Thu, 31 Aug 2023 15:13:48 +0000</created>
                <updated>Mon, 9 Oct 2023 11:30:06 +0000</updated>
                                                                            <component>Bulk API</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5696687" author="JIRAUSER1269924" created="Tue, 12 Sep 2023 07:56:56 +0000"  >&lt;p&gt;Thank you, Allan. This sounds like a good improvement. We will consider this ticket for our upcoming quarterly plan.&#160;&lt;/p&gt;</comment>
                            <comment id="5672241" author="dbeng-pm-bot" created="Thu, 31 Aug 2023 15:13:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alb%40neptunesystems.com&quot; class=&quot;user-hover&quot; rel=&quot;alb@neptunesystems.com&quot;&gt;alb@neptunesystems.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CXX-2494</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i26pko:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>