| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
Limitations |
| 4 |
=========== |
| 5 |
|
| 6 |
Groonga has some limitations. |
| 7 |
|
| 8 |
Limitations of table |
| 9 |
-------------------- |
| 10 |
|
| 11 |
A table has the following limitations. |
| 12 |
|
| 13 |
* The maximum one key size: 4KiB |
| 14 |
* The maximum total size of keys: |
| 15 |
|
| 16 |
* 4GiB by default. |
| 17 |
|
| 18 |
* 1TiB by specifying ``KEY_LARGE`` flag to |
| 19 |
:ref:`table-create-flags`. ``KEY_LARGE`` can be used with |
| 20 |
:ref:`table-hash-key` or :ref:`table-pat-key`. |
| 21 |
However, ``KEY_LARGE`` with ``TABLE_PAT_KEY`` supports version 15.1.5 or later. |
| 22 |
|
| 23 |
* The maximum number of records: |
| 24 |
|
| 25 |
* :ref:`table-no-key`: 1,073,741,815 (2 :sup:`30` - 9) |
| 26 |
* :ref:`table-hash-key`: 536,870,912 (2 :sup:`29`) |
| 27 |
* :ref:`table-pat-key`: 1,073,741,823 (2 :sup:`30` - 1) |
| 28 |
* :ref:`table-dat-key`: 268,435,455 (2 :sup:`28` - 1) |
| 29 |
|
| 30 |
Keep in mind that these limitations may vary depending on |
| 31 |
conditions. |
| 32 |
|
| 33 |
For example, you need to use small size type for key to store many |
| 34 |
records. Because the maximum total size of keys limitation is exceeded |
| 35 |
before the maximum number of records limitation is exceeded. If you |
| 36 |
use ``UInt64`` (8byte) type and store 2 :sup:`29` records, total key |
| 37 |
size is 4GiB (= 8 * (2 :sup:`29`)). You can't add more records. You |
| 38 |
need to choose decreasing key size (e.g. ``UInt32``) or using |
| 39 |
``KEY_LARGE`` and :ref:`table-hash-key` to store more records. |
| 40 |
|
| 41 |
Limitations of indexing |
| 42 |
----------------------- |
| 43 |
|
| 44 |
A full-text index has the following limitations. |
| 45 |
|
| 46 |
* The maximum number of distinct terms: 268,435,455 (more than 268 million) |
| 47 |
* The maximum index size: 256GiB |
| 48 |
|
| 49 |
Keep in mind that these limitations may vary depending on conditions. |
| 50 |
|
| 51 |
Limitations of column |
| 52 |
--------------------- |
| 53 |
|
| 54 |
A column has the following limitation. |
| 55 |
|
| 56 |
* The maximum stored data size of a column: 256GiB |
| 57 |
|