[DOCS-12112] Docs should explicitly state the limitation that views cannot be created on collections present in another database Created: 04/Oct/18  Updated: 30/Oct/23  Resolved: 11/Oct/18

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: Harshad Dhavale Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: createView, views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 5 years, 17 weeks, 6 days ago
Epic Link: DOCSP-1769

 Description   

 

Currently, it is not possible to create a view in one database sourced from a collection in another database. As indicated in the db.createView() documentation (https://docs.mongodb.com/v3.6/reference/method/db.createView/#db.createView), the source parameter for the view does not include the database name and implies the same database as the view to create. However this statement is buried deep and is very subtle.

It would help if the documentation on views and db.createView explicitly state the limitation that it is not possible to create a view in one database sourced from a collection in another database.

 



 Comments   
Comment by Githook User [ 11/Oct/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabellasiu@Isabellas-MacBook.local'}

Message: DOCS-12112 document views can only be created in the same database as their source collection
Branch: v3.4
https://github.com/mongodb/docs/commit/42f92348a13b311630210081e6c3f852abb61bfd

Comment by Githook User [ 11/Oct/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabellasiu@Isabellas-MacBook.local'}

Message: DOCS-12112 document views can only be created in the same database as their source collection
Branch: v3.6
https://github.com/mongodb/docs/commit/6709f5dbf8a3dde544044f1055fd524f192a8cdc

Comment by Githook User [ 11/Oct/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabellasiu@Isabellas-MacBook.local'}

Message: DOCS-12112 document views can only be created in the same database as their source collection
Branch: v4.0
https://github.com/mongodb/docs/commit/f7acb9fb3198a26a16561c2a022bf3c8ce4bd222

Comment by Githook User [ 11/Oct/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabellasiu@Isabellas-MacBook.local'}

Message: DOCS-12112 document views can only be created in the same database as their source collection
Branch: master
https://github.com/mongodb/docs/commit/71b3e915fcafa8d66a0382daaf8530a0557e8172

Generated at Thu Feb 08 08:04:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.