Sha256: fce408f360eeb4abd6d9951f22eddea92d0ded94e339bf2e647128347b7d658b

Contents?: true

Size: 1.3 KB

Versions: 92

Compression:

Stored size: 1.3 KB

Contents

.. -*- rst -*-

.. highlightlang:: none

``defrag``
==========

Summary
-------

``defrag`` command resolves fragmentation of specified objects.

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

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

Syntax
------
::

 defrag objname threshold

Usage
-----

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

 defrag
 [300]

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

 defrag Entry.body
 [30]

Parameters
----------

``objname``

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

Return value
------------

::

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

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

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

Version data entries

92 entries across 46 versions & 1 rubygems

Version Path
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt