Sha256: 985232642783ef25ea29299f14548af44d28c52159b8cf2e24bf5a27e39a59bc

Contents?: true

Size: 1.3 KB

Versions: 47

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

47 entries across 16 versions & 1 rubygems

Version Path
rroonga-2.1.3-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-2.1.3-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/defrag.txt
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/defrag.txt
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/defrag.txt
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/defrag.txt
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/defrag.txt
rroonga-2.0.4-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/commands/defrag.txt
rroonga-2.0.4-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/commands/defrag.txt
rroonga-2.0.4-x86-mingw32 vendor/local/share/doc/groonga/source/commands/defrag.txt