<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52: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>[JAVA-389] Make GridFS index check/ensure less costly</title>
                <link>https://jira.mongodb.org/browse/JAVA-389</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Add a check for the index (doesn&apos;t require a server call if cached) before calling count (always requires a server call).&lt;/p&gt;</description>
                <environment></environment>
        <key id="18826">JAVA-389</key>
            <summary>Make GridFS index check/ensure less costly</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                            <label>gridfs</label>
                    </labels>
                <created>Wed, 29 Jun 2011 14:49:38 +0000</created>
                <updated>Wed, 2 Sep 2015 10:16:41 +0000</updated>
                            <resolved>Wed, 2 Sep 2015 09:21:05 +0000</resolved>
                                                                    <component>GridFS</component>
                                        <votes>1</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1020340" author="ross@10gen.com" created="Wed, 2 Sep 2015 09:21:05 +0000"  >&lt;p&gt;There is a new GridFS implementation &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1713&quot; title=&quot;Create new GridFS API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1713&quot;&gt;&lt;del&gt;JAVA-1713&lt;/del&gt;&lt;/a&gt; that follows the new GridFS specification with regards to how to check for and create indexes on a GridFS Bucket.&lt;/p&gt;</comment>
                            <comment id="69715" author="thiloplanz" created="Wed, 30 Nov 2011 06:58:10 +0000"  >&lt;p&gt;It should not be necessary to make the GridFS instance a singleton just for this.&lt;/p&gt;

&lt;p&gt;Also, not everyone may need an index on filename, right? Ideally it should be left to the user to create the indexes he wants, and not happen automatically (and least of all as part of a constructor).&lt;/p&gt;

&lt;p&gt;If that is too big a change, then there should be a new optional flag for the constructor to not have the count/index check, and if the count does need to be run (after the fix discussed here), maybe the count could be executed with a limit of 1000 so that it returns quickly even on large collections?&lt;/p&gt;


</comment>
                            <comment id="42952" author="scotthernandez" created="Tue, 19 Jul 2011 00:44:19 +0000"  >&lt;p&gt;yes, it will be have to checked once, but if you don&apos;t create the GridFS as a singleton then it may do needless calls.&lt;/p&gt;</comment>
                            <comment id="42950" author="antoine" created="Tue, 19 Jul 2011 00:31:44 +0000"  >&lt;p&gt;hopefully the GridFS instance is a singleton.&lt;br/&gt;
So if created at beginning of app, the index would need to be checked against server anyway, right?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="227289">JAVA-1938</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hrgadj:</customfieldvalue>

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