Re: [h2] does h2 support prefix index?

2020-04-10 Thread Noel Grandin
http://h2database.com/html/features.html#computed_columns On Fri, 10 Apr 2020 at 11:49, Chen Huang wrote: > I have a table with a TEXT/CLOB like column that need to be indexed: > > CREATE TABLE test (id INT PRIMARY KEY, val VARCHAR(512)) > > but this index takes too much spaces: > > CREA

[h2] does h2 support prefix index?

2020-04-10 Thread Chen Huang
I have a table with a TEXT/CLOB like column that need to be indexed: CREATE TABLE test (id INT PRIMARY KEY, val VARCHAR(512)) but this index takes too much spaces: CREATE INDEX test_val ON test(val) Can I create an index with only a prefix of this column? like MySQL's prefix index: