# _database_close/_database_reopen can't use with HTTP because requests via HTTP are always # processed by workers. Workers never use primary WAL role. #@require-interface stdio #@require-feature message_pack #$GROONGA_ALLOW_DATABASE_REOPEN=yes #$GRN_WAL_ROLE=primary #$GRN_ENABLE_REFERENCE_COUNT=no #@disable-logging cache_limit --max 0 #@enable-logging table_create Memos TABLE_HASH_KEY ShortText column_create Memos tags COLUMN_VECTOR ShortText io_flush #@copy-path #{db_path}.0000101 #{db_path}.0000101.initial load --table Memos [ {"_key": "chunk: 8B <= && <= 64KiB", "tags": ["ABCD", "EFGH"]} ] check --obj Memos.tags select --table Memos #@copy-path #{db_path}.0000101.wal #{db_path}.0000101.wal.keep _database_close #@copy-path #{db_path}.0000101.initial #{db_path}.0000101 #@copy-path #{db_path}.0000101.wal.keep #{db_path}.0000101.wal _database_reopen select --table Memos check --obj Memos.tags