<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52: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>[JAVA-512] Ability to retrieve GridFSFile from oplog collection</title>
                <link>https://jira.mongodb.org/browse/JAVA-512</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When monitoring oplog for GridFS documents. It would be a good idea to have the ability to retrieve the object directly from this collection. &lt;br/&gt;
The current implementation does not support it GridFS document must be fetch for its collection.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29400">JAVA-512</key>
            <summary>Ability to retrieve GridFSFile from oplog collection</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="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="richardwilly98">Richard Louapre</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Mon, 30 Jan 2012 12:16:36 +0000</created>
                <updated>Wed, 2 Sep 2015 10:16:41 +0000</updated>
                            <resolved>Wed, 2 Sep 2015 09:22:24 +0000</resolved>
                                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1020342" author="ross@10gen.com" created="Wed, 2 Sep 2015 09:22:24 +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.  There are no plans to support oplog collections in this way.&lt;/p&gt;</comment>
                            <comment id="83308" author="scotthernandez" created="Mon, 30 Jan 2012 14:49:21 +0000"  >&lt;p&gt;You do not want to query the oplog for those. You would want to be able to catch them on the stream of documents being written to the oplog so you don&apos;t have to query, and that isn&apos;t easy since the event which will trigger your &quot;I found a gridfs file&quot; would be the last doc in the files collection. All the chunks will be written first as you can imagine.&lt;/p&gt;

&lt;p&gt;You are better to use the gridfs system as it will be faster, most likely in all cases.&lt;/p&gt;</comment>
                            <comment id="83295" author="richardwilly98" created="Mon, 30 Jan 2012 14:35:52 +0000"  >&lt;p&gt;If I insert a new GridFS document using mongofiles utility. I can see multiple entries in oplog.rs for this operation:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;multiple entries with ns: ....fs.chunks and one final entry with n: ....fs.files.&lt;br/&gt;
It look to me that it contains all data to get GridFSFile from there. Is that correct?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Anyway if there is no performance impact to get the GridFSDile from GridFS interface I will use that option.&lt;/p&gt;</comment>
                            <comment id="83283" author="scotthernandez" created="Mon, 30 Jan 2012 14:00:38 +0000"  >&lt;p&gt;This doesn&apos;t make a lot of sense, unfortunately. The oplog entries are single documents and you won&apos;t have a full GridFSFile in a single document.&lt;/p&gt;

&lt;p&gt;You should get the _id from the oplog entry (insert/update operation) and just get the GridFSFile from the GridFS interface for that file. This works well, and should be fast as the file was just updated.&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|hrgajr:</customfieldvalue>

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