[SERVER-58560] Implement algorithm to determine scale factor Created: 14/Jul/21 Updated: 29/Oct/23 Resolved: 18/Aug/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.1.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Henrik Edin | Assignee: | Henrik Edin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Execution Team 2021-08-09, Execution Team 2021-08-23 | ||||||||
| Participants: | |||||||||
| Description |
|
Scale factor is determined at high level in the BSON type 7 binary. When an encoder is appending doubles that need to compress we will start with scale factor 0 when starting a new Simple-8b block. Every double that is appended need their minimal scale factor needed to be able to represent the double exactly as an integer. When a double is appended that needs a larger scale factor than previous doubles the encoder need to determine what can compress the most values between:
|
| Comments |
| Comment by Vivian Ge (Inactive) [ 06/Oct/21 ] |
|
Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you! |
| Comment by Githook User [ 17/Aug/21 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: Doubles are scaled and rounded to closest integer. |