[MDEV-5174] Filesort excessively uses disk space for TINYBLOB and TINYTEXT columns Created: 2013-10-23 Updated: 2017-11-05 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.4, 5.5.33, 5.1.67, 5.2.14, 5.3.12 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Filesort uses Field::sort_length() to calculate space needed to sort the field. In case of BLOB and TEXT fields and all their uint32 Field_blob::sort_length() const The default value of max_sort_length is 1024. This is bad for TINYBLOB and TINYTEXT.
So TINYBLOB (and TINYTEXT in most cases) use 4 times more space |