[MDEV-15093] MyRocks: add support for virtual columns Created: 2018-01-26 Updated: 2019-07-06 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - RocksDB |
| Affects Version/s: | None |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sergei Petrunia | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
MyRocks-in-MariaDB doesn't support virtual columns:
Btw, Percona Server doesn't suppor them either:
|
| Comments |
| Comment by Philip orleans [ 2019-04-20 ] |
|
I need to create an index on a part of a column, but Rocksdb does not support virtual columns. Is there any alternative to get an index on the first character of a field only? |
| Comment by Sergei Petrunia [ 2019-04-22 ] |
|
philip_38, just use a prefix index? {{CREATE TABLE t ( a VARCHAR(10), KEY(a(1))); }} ? |
| Comment by Philip orleans [ 2019-07-06 ] |
|
The optimizer is not smart enough to take advantage of KEY(a(3)), in the case of RocksDB. Is there a workround? |