<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:59 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-732] copyCollection command</title>
                <link>https://jira.mongodb.org/browse/SERVER-732</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;make a copy of a collection&lt;/p&gt;

&lt;p&gt;{ copyCollection : &quot;foo&quot; &amp;lt;short collection name, not full namespace&amp;gt;&lt;br/&gt;
  to : &amp;lt;short collection name&amp;gt;&lt;br/&gt;
  fromdb : OPTIONAL&lt;br/&gt;
  fromHost : OPTIONAL&lt;br/&gt;
  query : OPTIONAL&lt;br/&gt;
  snapshot : OPTIONAL&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
        <key id="11478">SERVER-732</key>
            <summary>copyCollection command</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="geert.bosch@mongodb.com">Geert Bosch</assignee>
                                    <reporter username="namlook">Namlook</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Mar 2010 04:33:51 +0000</created>
                <updated>Wed, 30 Jan 2019 22:17:59 +0000</updated>
                            <resolved>Tue, 22 Jan 2019 02:41:43 +0000</resolved>
                                                                    <component>Storage</component>
                                        <votes>88</votes>
                                    <watches>44</watches>
                                                                                                                <comments>
                            <comment id="2122253" author="brian.lane" created="Tue, 22 Jan 2019 02:41:32 +0000"  >&lt;p&gt;We have decided to close this issue as won&apos;t fix. &lt;/p&gt;

&lt;p&gt;Due to security concerns, we feel it is better to use &lt;a href=&quot;https://docs.mongodb.com/manual/reference/program/mongodump/#bin&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodump&lt;/a&gt; and &lt;a href=&quot;https://docs.mongodb.com/manual/reference/program/mongodump/#bin&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongorestore&lt;/a&gt; tools to transfer data between nodes. You can choose to run those tools on the same host running the mongod process if that fits with your security policy. There is also the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.cloneCollection/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;db.cloneCollection()&lt;/a&gt; method, but this doesn&apos;t work when authorization is enabled on the from server.&lt;/p&gt;

&lt;p&gt;Feel free to comment on this issue to provide additional feedback to us.&lt;/p&gt;

&lt;p&gt;-Brian&lt;/p&gt;</comment>
                            <comment id="1726426" author="d.schrooten@scisports.com" created="Wed, 15 Nov 2017 15:11:52 +0000"  >&lt;p&gt;It&apos;s ridiculous that this functionality is still not included in MongoDB 3.6. It&apos;s quite important when working with large collections and multiple databases on the same server. You could extend the cloneCollection functionality to allow connections to instances with auth enabled.&lt;/p&gt;</comment>
                            <comment id="1484676" author="timotheecour" created="Wed, 25 Jan 2017 06:42:41 +0000"  >&lt;p&gt;Asked here &lt;a href=&quot;https://groups.google.com/forum/#!searchin/mongodb-user/timothee$20cour&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!searchin/mongodb-user/timothee$20cour&lt;/a&gt;|sort:relevance/mongodb-user/lSVXFPrtbaA/9fPuQNiLCQAJ&lt;br/&gt;
and was pointed to here; signed up to upvote this.&lt;br/&gt;
As said there, my workaround was:&lt;br/&gt;
```&lt;br/&gt;
db.profile.renameCollection(&apos;users.profile_temp&apos;)&lt;br/&gt;
db.cloneCollection(&apos;mongodb.example.net:27017&apos;, &apos;users.profile&apos;)&lt;br/&gt;
db.profile.renameCollection(&apos;users.profile_cloned&apos;)&lt;br/&gt;
db.profile_temp.renameCollection(&apos;users.profile&apos;)&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Btw, @Namlook can we rename this issue as `cloneCollection + renaming` (more descriptive)&lt;/p&gt;</comment>
                            <comment id="534575" author="albert@suretybonds.com" created="Thu, 3 Apr 2014 19:06:53 +0000"  >&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/questions/11554762/how-can-i-copy-collection-to-another-database-in-mongodb#comment15281971_11554924&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Also worthy to note that the workaround also is prone to type changes as well.&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="524711" author="apfejes" created="Thu, 27 Mar 2014 16:25:03 +0000"  >&lt;p&gt;Signed up just to vote for this - it&apos;s a very basic operation that really should just be an extension to the copyCollection command, and William is absolutely right - the work around is very slow, when this should be a quick operation.&lt;/p&gt;</comment>
                            <comment id="481141" author="wthidden" created="Mon, 13 Jan 2014 19:14:22 +0000"  >&lt;p&gt;While the workaround works it is much slower than copyCollection. Also there is a need to address authentication which is not provided in the proposed API.&lt;/p&gt;</comment>
                            <comment id="419887" author="daryltucker" created="Sat, 7 Sep 2013 02:04:15 +0000"  >&lt;p&gt;Temporary solution/workaround:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.&amp;lt;collection_name&amp;gt;.find().forEach(function(d){ db.getSiblingDB(&apos;&amp;lt;new_database&amp;gt;&apos;)[&apos;&amp;lt;collection_name&amp;gt;&apos;].insert(d); });&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="29299" author="eliot" created="Tue, 19 Apr 2011 16:12:55 +0000"  >&lt;p&gt;This will get done in vote order&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="12262">SERVER-1307</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="162666">SERVER-15571</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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000aOufHIAS]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 19 Apr 2011 16:12:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 3 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 3 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>albert@suretybonds.com</customfieldvalue>
            <customfieldvalue>apfejes</customfieldvalue>
            <customfieldvalue>brian.lane@mongodb.com</customfieldvalue>
            <customfieldvalue>daryltucker</customfieldvalue>
            <customfieldvalue>d.schrooten@scisports.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>geert.bosch@mongodb.com</customfieldvalue>
            <customfieldvalue>namlook</customfieldvalue>
            <customfieldvalue>timotheecour</customfieldvalue>
            <customfieldvalue>wthidden</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpqtj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6337</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2708">Storage NYC 2019-01-14</customfieldvalue>
    <customfieldvalue id="2709">Storage NYC 2019-01-28</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</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|hsi91b:</customfieldvalue>

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