File: parallel.test

package info (click to toggle)
groonga 16.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,416 kB
  • sloc: ansic: 772,827; cpp: 52,396; ruby: 40,556; javascript: 10,250; yacc: 7,045; sh: 5,627; python: 2,821; makefile: 1,679
file content (29 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#@require-apache-arrow
#$GRN_TOKEN_COLUMN_PARALLEL_TABLE_SIZE_THRESHOLD=1
#$GRN_TOKEN_COLUMN_PARALLEL_CHUNK_SIZE=2

table_create Terms TABLE_PAT_KEY ShortText \
  --normalizer NormalizerNFKC121 \
  --default_tokenizer TokenNgram

table_create Notes TABLE_NO_KEY
column_create Notes title COLUMN_SCALAR Text

load --table Notes
[
{"title": "Hello Groonga"},
{"title": " "},
{"title": "Hello Mroonga"},
{"title": "Hello Rroonga"}
]

column_create Notes title_terms COLUMN_VECTOR Terms title

select Notes \
  --query _id:2 \
  --output_columns title_terms

dump

column_create Terms notes_title COLUMN_INDEX|WITH_POSITION Notes title
index_column_diff Terms notes_title