How to enable column storage in docker deployment? #941
donbing007
started this conversation in
General
Replies: 1 comment 1 reply
-
As said in the docs you just need to use env. var. snikolaev@dev:~$ docker run -e MCL=1 --name manticore --rm -d manticoresearch/manticore:5.0.2-extra2 && sleep 3 && docker exec -it manticore mysql && docker stop manticore
3636836189f5a6005742438fa473ddb4e48b3e1d42cc1f9f7eaf6231bc837184
mysql> show status like 'version';
+---------+-----------------------------------------------------------------------------------------------+
| Counter | Value |
+---------+-----------------------------------------------------------------------------------------------+
| version | 5.0.2 348514c86@220530 dev (columnar 1.15.4 2fef34e@220522) (secondary 1.15.4 2fef34e@220522) |
+---------+-----------------------------------------------------------------------------------------------+
mysql> create table oqsindex2
-> (
-> attrf text indexed,
-> entityclassf text indexed,
-> tx bigint,
-> commitid bigint engine='columnar',
-> createtime bigint engine='columnar',
-> updatetime bigint engine='columnar',
-> maintainid bigint,
-> oqsmajor int,
-> attr json
-> ) engine='rowwise' charset_table='non_cjk,cjk' rt_mem_limit='1024m';
mysql> desc oqsindex2;
+--------------+--------+---------------------+
| Field | Type | Properties |
+--------------+--------+---------------------+
| id | bigint | |
| attrf | text | indexed |
| entityclassf | text | indexed |
| oqsmajor | uint | |
| tx | bigint | |
| commitid | bigint | columnar fast_fetch |
| createtime | bigint | columnar fast_fetch |
| updatetime | bigint | columnar fast_fetch |
| maintainid | bigint | |
| attr | json | |
+--------------+--------+---------------------+ The latest release tag is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The mirror used is "manticoresearch/manticore:5.0.2"
An error occurs when I want to create an index using column storage.
What else do I need to do to open the secondary index?
Beta Was this translation helpful? Give feedback.
All reactions