Sha256: 46512642e3372b8cae184a46811b33e25456a9e4b7e3a2f81c593ca500254037

Contents?: true

Size: 1.3 KB

Versions: 14

Compression:

Stored size: 1.3 KB

Contents

.. -*- rst -*-

.. highlightlang:: none

defrag
======

名前
----

defrag - オブジェクトにセットされたロックを解除する

書式
----
::

 defrag objname threshold

説明
----

groonga組込コマンドの一つであるdefragについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。

defragは、対象となるオブジェクト(データベースか可変長サイズカラム)を指定し、オブジェクトのフラグメンテーションを解消します。

引数
----

``objname``

  対象となるオブジェクト名を指定します。空の場合、開いているdbオブジェクトが対象となります。

返値
----

json形式
^^^^^^^^

::

 [フラグメンテーション解消を実行したセグメントの数]

``フラグメンテーション解消を実行したセグメントの数``

  フラグメンテーション解消を実行したセグメントの数を返す。

例
--

開いているデータベースのフラグメンテーションを解消する::

 defrag
 [300]

テーブル名 Entry のカラム body のフラグメンテーションを解消する::

 defrag Entry.body
 [30]

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
rroonga-3.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-3.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-3.0.6-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-3.0.6-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-3.0.5-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-3.0.5-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-3.0.4-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-3.0.4-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-3.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-3.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-3.0.1-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-3.0.1-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-3.0.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-3.0.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt