<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:39:28 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-35314] Allow changing default collation for a collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-35314</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The default collation of a collection may be specified during creation (&lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.createCollection/#db.createCollection&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/method/db.createCollection/#db.createCollection&lt;/a&gt;). However, there is no way to change the default collation of a collection that already exists. For example, &lt;em&gt;collMod&lt;/em&gt; does not allow changing the collation option.&lt;/p&gt;

&lt;p&gt;This appears intentional:&lt;br/&gt;
 &lt;a href=&quot;https://docs.google.com/document/d/1SxbSBj50GurIDfUXwLBaEfy3h_SHNkJzia5luj87wWM/edit&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.google.com/document/d/1SxbSBj50GurIDfUXwLBaEfy3h_SHNkJzia5luj87wWM/edit&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Operations issued against the collection will respect the collection default collation, unless an overriding collation is set on the operation itself. Once the collection has been created, the collation cannot be changed.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;However, implicit collection creation is more common than explicit. Not allowing default collation changes makes it difficult to discover collation needs later in the development/release cycle and forces large code changes to apply collation to cursors.&lt;/p&gt;</description>
                <environment></environment>
        <key id="552241">SERVER-35314</key>
            <summary>Allow changing default collation for a collection</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="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-execution">Backlog - Query Execution</assignee>
                                    <reporter username="justin.labreck@mongodb.com">Justin LaBreck</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 May 2018 16:21:22 +0000</created>
                <updated>Tue, 6 Dec 2022 03:27:52 +0000</updated>
                                                                            <component>Index Maintenance</component>
                    <component>Querying</component>
                                        <votes>35</votes>
                                    <watches>41</watches>
                                                                                                                <comments>
                            <comment id="4531890" author="JIRAUSER1262938" created="Fri, 6 May 2022 16:55:48 +0000"  >&lt;p&gt;Thank you for the try, I&apos;ll keep watching this ticket. It&apos;s actually an important caveat about the default _id index. We actually tried to work around this issue by using mongoose collation option but it degraded performance of _id queries and we had to roll back&lt;/p&gt;</comment>
                            <comment id="4531788" author="kyle.suarez" created="Fri, 6 May 2022 16:23:03 +0000"  >&lt;p&gt;After speaking with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=max.hirschhorn%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;max.hirschhorn@mongodb.com&quot;&gt;max.hirschhorn@mongodb.com&lt;/a&gt; and the rest of the Query Team, we&apos;ve concluded that this ticket won&apos;t be &quot;quick&quot;. The _id index must use the collection&apos;s default collation for replication to properly work, so changing the default collation will necessitate an index rebuild. Furthermore we currently don&apos;t allow building another _id index with a collation that differs from the collection&apos;s default.&lt;/p&gt;

&lt;p&gt;The Storage Execution team is planning a project that improves the support for index rebuilds, which will be tracked and enabled as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64532&quot; title=&quot;Enable Feature flag for PM-2776&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64532&quot;&gt;SERVER-64532&lt;/a&gt;. I am going to send this feature request back to the backlog, but we will consider this request again after that dependent project is complete.&lt;/p&gt;</comment>
                            <comment id="4528415" author="kyle.suarez" created="Thu, 5 May 2022 13:56:22 +0000"  >&lt;p&gt;It&apos;s possible we can implement this feature relatively easily as long as we don&apos;t affect existing indexes, as the collation affects the on-disk index format. Sending this to the triage queue so that Query Execution can discuss adding this feature to the quick wins bucket.&lt;/p&gt;</comment>
                            <comment id="4525737" author="JIRAUSER1269692" created="Wed, 4 May 2022 14:37:51 +0000"  >&lt;p&gt;Same boat - Would simplify our indexes for sure. We didn&apos;t have a lot of MongoDb experience when we got started. Now we wish we understood this when we created the collections. It&apos;s not something we can really migrate now due to size and being live.&lt;/p&gt;</comment>
                            <comment id="4525603" author="JIRAUSER1262938" created="Wed, 4 May 2022 14:07:47 +0000"  >&lt;p&gt;Just wanted to bring some attention to the issue as it is very much wanted by our dev team. We didn&apos;t care about performance at the start but now collections are huge and it&apos;s hard to migrate from RegExp to collation indexes&lt;/p&gt;</comment>
                            <comment id="1906916" author="kyle.suarez" created="Thu, 31 May 2018 16:28:08 +0000"  >&lt;p&gt;If we decide we want this feature, we should consider it in tandem with &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27762&quot; title=&quot;creating a view without specifying collation explicitly should insert the collation of the underlying entity&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27762&quot;&gt;SERVER-27762&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="347136">SERVER-27762</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000je7hoQAA, 5002K00000npOXmQAM, 5002K00000pG3MaQAK, 5002K00000pk6vPQAQ, 5002K00000uEHwcQAG, 5002K000011C8mfQAC, 5006R00001l8w3JQAQ]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 31 May 2018 16:28:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 39 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<a href='https://jira.mongodb.org/browse/PM-2776'>PM-2776</a>]]></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>
                            1 year, 39 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-query-execution</customfieldvalue>
            <customfieldvalue>justin.labreck@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>p.kalugin@paralect.com</customfieldvalue>
            <customfieldvalue>travis.whidden@econnect.tv</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htzg5r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr2gb3:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</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|htz2f3:</customfieldvalue>

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