[SERVER-47803] Move the database level profile setting from Database into CollectionCatalog Created: 27/Apr/20 Updated: 29/Oct/23 Resolved: 14/May/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0, 4.4.2 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Dianna Hohensee (Inactive) | Assignee: | Dianna Hohensee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v4.4, v4.2
|
||||||||||||
| Sprint: | Execution Team 2020-05-18 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
We want to make the Database class stateless so that we do not need to version the Database class like the Collection class. The Database class' _profile setting should go into the CollectionCatalog. The initial idea is that CollectionCatalog will hold a new map of database name to profile level. Geert suggested only adding entries to the map if a non-default setting is set. We already do map lookups to fetch the Database instance, so doing a map lookup in CollectionCatalog instead of fetching the Database for the profile level shouldn't make a difference. It would be nice to do away with the map lookup every Collection read must do to fetch the profiling level, if some reasonable means can be thought up. No need to version the profile level, per the project design. |
| Comments |
| Comment by Githook User [ 11/Sep/20 ] |
|
Author: {'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}Message: |
| Comment by Githook User [ 14/May/20 ] |
|
Author: {'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}Message: |