<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:30 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>[JAVA-525] make it possible to override _id for GridFS file</title>
                <link>https://jira.mongodb.org/browse/JAVA-525</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;This is needed for proper sharding support.&lt;br/&gt;
Right now it&apos;s hardcoded to use an ObjectId which means it&apos;s ever growing and hits the same shard.&lt;/p&gt;

&lt;p&gt;Also it would allow to have a unique constraint on filename, if it&apos;s used as _id.&lt;/p&gt;</description>
                <environment></environment>
        <key id="31384">JAVA-525</key>
            <summary>make it possible to override _id for GridFS file</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="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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="antoine">Antoine Girbal</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Feb 2012 20:20:23 +0000</created>
                <updated>Mon, 18 Jun 2012 19:36:10 +0000</updated>
                            <resolved>Wed, 18 Apr 2012 19:25:48 +0000</resolved>
                                                    <fixVersion>2.8.0</fixVersion>
                                                        <votes>3</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="134051" author="jeff.yemin" created="Mon, 18 Jun 2012 19:36:10 +0000"  >&lt;p&gt;Closing for 2.8.0 release.&lt;/p&gt;</comment>
                            <comment id="111313" author="jeff.yemin" created="Wed, 18 Apr 2012 19:25:38 +0000"  >&lt;p&gt;Added com.mongodb.gridfs.GridFSInputFile#setId method.  &lt;/p&gt;</comment>
                            <comment id="111141" author="auto" created="Wed, 18 Apr 2012 14:49:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-525&quot; title=&quot;make it possible to override _id for GridFS file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-525&quot;&gt;&lt;del&gt;JAVA-525&lt;/del&gt;&lt;/a&gt;: Removed setting of write concern to allow clients to set it as appropriate&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/97020aac0054f598c5b8f9ace36d840913fe9ce1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/97020aac0054f598c5b8f9ace36d840913fe9ce1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="110804" author="auto" created="Tue, 17 Apr 2012 18:57:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;dgottlieb&apos;, u&apos;name&apos;: u&apos;Daniel Gottlieb&apos;, u&apos;email&apos;: u&apos;daniel.gottlieb@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-525&quot; title=&quot;make it possible to override _id for GridFS file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-525&quot;&gt;&lt;del&gt;JAVA-525&lt;/del&gt;&lt;/a&gt;: Move WriteConcern options to GridFS instantiation. Adding GridFS Chunks sounds like a bad idea if the GridFS file object failed to upsert properly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/34ac92995a3ed6fd78574e6a48687a31923dddf6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/34ac92995a3ed6fd78574e6a48687a31923dddf6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="110803" author="auto" created="Tue, 17 Apr 2012 18:57:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;dgottlieb&apos;, u&apos;name&apos;: u&apos;Daniel Gottlieb&apos;, u&apos;email&apos;: u&apos;daniel.gottlieb@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-525&quot; title=&quot;make it possible to override _id for GridFS file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-525&quot;&gt;&lt;del&gt;JAVA-525&lt;/del&gt;&lt;/a&gt;: Allow users to override the _id field for GridFSFiles&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e36aea594eca54873d28b371f43f5f8f56b4fea5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e36aea594eca54873d28b371f43f5f8f56b4fea5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="110549" author="mrityunjay" created="Tue, 17 Apr 2012 06:06:02 +0000"  >&lt;p&gt;Agreed, this is a required feature to prevent sharding hot spots; it&apos;s a cause of concern for us as we speculate on using GridFS as a file store. Also, can we create a bug for Casbah to include this change?&lt;/p&gt;</comment>
                            <comment id="101224" author="scotthernandez" created="Thu, 22 Mar 2012 01:57:51 +0000"  >&lt;p&gt;Mark, we will be fixing sharding to support the &lt;/p&gt;
{files_id:1, n:1}
&lt;p&gt; shard key (via the filemd5 command) in the future which will help for 2.2, but this might help in the meantime, and until people can upgrade their servers.&lt;/p&gt;</comment>
                            <comment id="101215" author="marknospamplease" created="Thu, 22 Mar 2012 01:26:14 +0000"  >&lt;p&gt;I highly recommend this fix. Sharding creates a hotspot otherwise. &lt;/p&gt;</comment>
                            <comment id="93031" author="scotthernandez" created="Mon, 27 Feb 2012 20:54:08 +0000"  >&lt;p&gt;There are reasons you might want to use a custom files_id which isn&apos;t an ObjectId independent of the shard/hash issue.&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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhbb3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14632</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>