• 普通表和实时表设置
在配置文件中定义表架构
table <index_name>[:<parent table name>] {
...
}table <table name> {
type = plain
path = /path/to/table
source = <source_name>
source = <another source_name>
[stored_fields = <comma separated list of full-text fields that should be stored, all are stored by default, can be empty>]
}table <table name> {
type = rt
path = /path/to/table
rt_field = <full-text field name>
rt_field = <another full-text field name>
[rt_attr_uint = <integer field name>]
[rt_attr_uint = <another integer field name, limit by N bits>:N]
[rt_attr_bigint = <bigint field name>]
[rt_attr_bigint = <another bigint field name>]
[rt_attr_multi = <multi-integer (MVA) field name>]
[rt_attr_multi = <another multi-integer (MVA) field name>]
[rt_attr_multi_64 = <multi-bigint (MVA) field name>]
[rt_attr_multi_64 = <another multi-bigint (MVA) field name>]
[rt_attr_float = <float field name>]
[rt_attr_float = <another float field name>]
[rt_attr_float_vector = <float vector field name>]
[rt_attr_float_vector = <another float vector field name>]
[rt_attr_bool = <boolean field name>]
[rt_attr_bool = <another boolean field name>]
[rt_attr_string = <string field name>]
[rt_attr_string = <another string field name>]
[rt_attr_json = <json field name>]
[rt_attr_json = <another json field name>]
[rt_attr_timestamp = <timestamp field name>]
[rt_attr_timestamp = <another timestamp field name>]
[stored_fields = <comma separated list of full-text fields that should be stored, all are stored by default, can be empty>]
[rt_mem_limit = <RAM chunk max size, default 128M>]
[optimize_cutoff = <max number of RT table disk chunks>]
}通用平面和实时表设置
type
path
stored_fields
stored_only_fields
json_secondary_indexes
实时表设置
optimize_cutoff
rt_field
rt_attr_uint
rt_attr_bigint
rt_attr_multi
rt_attr_multi_64
rt_attr_float
rt_attr_float_vector
rt_attr_bool
rt_attr_string
rt_attr_json
rt_attr_timestamp
rt_mem_limit
普通表设置:
source
killlist_target
columnar_attrs
平面表设置:
source
killlist_target
columnar_attrs
columnar_strings_no_hash
通过CREATE TABLE在线创建实时表
类型
配置文件中的等效项
说明
别名
引擎
其他设置
性能相关
访问表文件
值
描述
设置
值
描述
表部分
保持在磁盘上
保持在内存中
服务器启动时缓存
锁定在内存中
其他性能相关设置
attr_update_reserve
docstore_block_size
docstore_compression
docstore_compression_level
preopen
read_buffer_docs
read_buffer_hits
普通表磁盘占用设置
inplace_enable
inplace_hit_gap
inplace_reloc_factor
inplace_write_factor
自然语言处理特定设置
最后更新于