Details
Description
We need to improve how inline size is calculated by default for variable-length types.
Currently if a varlength type is encountered inline size just defaults to 10, which is almost always not enough.
A more sensible behavior would be the following:
1. Add a fixed default to the inline size calculation for every variable-length type. For example, if the default inlined size for a string is 10 then an index like (INT, VARCHAR, VARCHAR, INT) should have inline size default as 5 + 10 + 10 + 5 = 30 (5 for each int, 10 for each string).
2. Add special support for VARCHAR_FIXED - if a VARCHAR has known length then that length is used for inline size calculation
Attachments
Issue Links
- is related to
-
IGNITE-11402 SQL: Add ability to specify inline size of PK and affinity key indexes from CREATE TABLE
- Resolved
- links to