[DOCS-10061] Docs for SERVER-15359: Provide "id" of collection Created: 29/Mar/17  Updated: 27/Sep/19  Resolved: 28/Sep/17

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 3.5.5

Type: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Jeffrey Allen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-15359 Provide "id" of collection Closed
Duplicate
is duplicated by DOCS-9480 Docs for SERVER-26513: listCollection... Closed
Participants:
Days since reply: 6 years, 19 weeks, 2 days ago
Epic Link: DOCS: 3.6 Server

 Description   

Documentation Request Summary:

listCollections output now includes a UUID to uniquely identify a collection.

Engineering Ticket Description:

It would be very helpful for clients, like replication or sharding, to track collection via a unique id which doesn't change during a rename or restarts. The "id" should be the same across replicas in a set or shards in a sharded cluster. Note: There is already an _id in sharding metadata for a collection but that is not exposed.

Here is an example of output from listCollections with an "id":

> db.runCommand("listCollections")
{
	"collections" : [
		{
			"id" : NumberLong("70368744177664"),
			"name" : "system.indexes",
			"options" : {}
		}
	],
	"ok" : 1
}



 Comments   
Comment by Githook User [ 02/Oct/17 ]

Author:

{'email': 'jeffrey.allen@10gen.com', 'name': 'jeff-allen-mongo', 'username': 'jeff-allen-mongo'}

Message: DOCS-10061 - Adding docs to indicate collection UUID as part of listCollections and getCollectionInfos

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/9c0c2f293ac75d2ad2ba0a9f93a909d951f98f6b

Comment by Jeffrey Allen [ 28/Sep/17 ]

This is RFM.

Pull req: https://github.com/mongodb/docs/pull/2969

CR: https://mongodbcr.appspot.com/161690001/

Generated at Thu Feb 08 07:59:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.