Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from groonga/blog-ja-add-7-0-7-entry
blog ja: add 7.0.7 entry
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
layout: post.ja | ||
title: Groonga 7.0.7リリース | ||
description: Groonga 7.0.7をリリースしました! | ||
--- | ||
|
||
## Groonga 7.0.7リリース | ||
|
||
今日は肉の日ですね! | ||
|
||
[Groonga 7.0.7](/ja/docs/news.html#release-7-0-7)をリリースしました! | ||
|
||
それぞれの環境毎のインストール方法: [インストール](/ja/docs/install.html) | ||
|
||
### 変更内容 | ||
|
||
主な変更点は以下の通りです。 | ||
|
||
* `QUERY_NO_SYNTAX_ERROR` が効かないケースがあったのを修正しました | ||
* command-version 3をデフォルトに設定できるようになりました | ||
* 関数を使っていてもselect結果をキャッシュするようになりました | ||
|
||
### `QUERY_NO_SYNTAX_ERROR` が効かないケースがあったのを修正しました | ||
|
||
[Groonga 7.0.6で入ったQUERY_NO_SYNTAX_ERROR](http://groonga.org/ja/blog/2017/08/29/groonga-7.0.6.html#クエリーをパースする際にフォールバックする機能をサポートしました)を指定しているのにシンタックスエラーとなるケースがあったのを修正しました。以下のように、クエリーに単独で `+` を指定した場合に起こっていました。 | ||
|
||
select Names \ | ||
--match_columns "_key" \ | ||
--query "+" \ | ||
--query_flags ALLOW_PRAGMA|ALLOW_COLUMN|QUERY_NO_SYNTAX_ERROR | ||
|
||
### command-version 3をデフォルトに設定できるようになりました | ||
|
||
groongaコマンドの[--default-command-version](https://groonga.org/docs/reference/command/command_version.html#default-command-version)に `3` を指定できるようになりました。以前のバージョンでも `--command_version 3` は成功していましたが、 `--default-command-version 3` はエラーになっていました。 | ||
|
||
### 関数を使っていてもselect結果をキャッシュするようになりました | ||
|
||
selectコマンドで関数を使っていた場合、以前のバージョンではselect結果をキャッシュしていませんでしたが、今回のバージョンから条件付きでキャッシュするようになりました。 | ||
|
||
その条件ですが、selectコマンドで使われているすべての関数の `is_stable` の値がtrue( `GRN_TRUE` )だった場合、select結果をキャッシュします。 `is_stable` の値はデフォルトでtrueになっています。引数が同じでも異なる結果を返す可能性のある関数を実装する場合、 `is_stable` にfalse( `GRN_FALSE` )を設定するようにしてください。なお、 `now()` と `rand()` の `is_stable` にはデフォルトでfalseが設定されているため、これらの関数が使われている場合はキャッシュしません。 | ||
|
||
`is_stable` を設定・参照するAPIとして、以下の2つを追加しました。 | ||
|
||
* `grn_proc_set_is_stable()` | ||
* `grn_proc_is_stable()` | ||
|
||
### さいごに | ||
|
||
7.0.6からの詳細な変更点は[7.0.7リリース 2017-09-29](/ja/docs/news.html#release-7-0-7)を確認してください。 | ||
|
||
それでは、Groongaでガンガン検索してください! |