<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:33 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>[GODRIVER-1978] Document that _id should be the first field in a Document</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1978</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;For performance reasons, the server recommends that the _id field in any inserted Document be the first one. transformAndEnsureID() used to move the _id field of any document to be first, but as of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1180&quot; title=&quot;Remove legacy transform functions from mongo&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1180&quot;&gt;&lt;del&gt;GODRIVER-1180&lt;/del&gt;&lt;/a&gt;, it no longer does.&lt;/p&gt;

&lt;p&gt;We&apos;d like to avoid changing the order of a Document that the user has created, but we should document that putting _id in any position but the first in an ordered Document insertion can potentially cause a loss in performance.&lt;/p&gt;

&lt;p&gt;Additionally, we should document that if users do not specify an _id in a bson.D, one will be added for them and added first. Finally, we should mention that there&apos;s no way to guarantee the position of a manually-added _id field in a bson.M.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1687618">GODRIVER-1978</key>
            <summary>Document that _id should be the first field in a Document</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="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="benji.rewis@mongodb.com">Benji Rewis</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Apr 2021 20:10:20 +0000</created>
                <updated>Wed, 30 Mar 2022 23:46:24 +0000</updated>
                                                                            <component>Documentation</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

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