[MDEV-7716] Spiral patch 018_mariadb-10.0.15.hash_tuning.diff Created: 2015-03-11 Updated: 2017-01-17 Resolved: 2017-01-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Fix Version/s: | 10.2.4 |
| Type: | Task | Priority: | Major |
| Reporter: | Sergey Vojtovich | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Epic Link: | Spiral patches |
| Comments |
| Comment by Sergey Vojtovich [ 2015-03-13 ] | ||||||||||||||||||||||
|
MariaDB already offers solutions for similar problems: LF_HASH and hash_function() method. | ||||||||||||||||||||||
| Comment by Michael Widenius [ 2016-12-06 ] | ||||||||||||||||||||||
|
Yes, we have LF_HASH, but the old hash is still used a lot and not having to calculate the hash over and over again will speed up things. | ||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2016-12-13 ] | ||||||||||||||||||||||
|
| ||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2016-12-13 ] | ||||||||||||||||||||||
|
monty, I leave it up to you to decide. I believe hash_function() can be used to solve hash value recalculation. | ||||||||||||||||||||||
| Comment by Michael Widenius [ 2016-12-20 ] | ||||||||||||||||||||||
|
New implementation with full test case done (the test case also found issues in the original code be Kentoku, so it was good to have it done):
| ||||||||||||||||||||||
| Comment by Michael Widenius [ 2017-01-17 ] | ||||||||||||||||||||||
|
Pushed into 10.2. Will merge to 10.2-spider shortly |