[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: |
| Comment by Githook User [ 11/Oct/18 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabellasiu@Isabellas-MacBook.local'}Message: |
| Comment by Githook User [ 11/Oct/18 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabellasiu@Isabellas-MacBook.local'}Message: |
| Comment by Githook User [ 11/Oct/18 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabellasiu@Isabellas-MacBook.local'}Message: |