[SERVER-54443] Wildcard indexes should ignore wiredTigerGlobalOptions.useIndexPrefixCompression option Created: 10/Feb/21 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Storage Execution
|
| Participants: |
| Description |
|
I think we basically always want prefix compression for wildcard indexes, even in cases where users may want it disabled for other indexes. As a simple fix, https://github.com/mongodb/mongo/blob/7d5cf026105db1693724db155b4f409b267ab352/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp#L171-L173 should check desc.getIndexType() == INDEX_WILDCARD. |
| Comments |
| Comment by Connie Chen [ 22/Mar/21 ] |
|
redbeard0531 Are there any situations where users should disable prefix compression at all? |