File: limitations.rst

package info (click to toggle)
groonga 15.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 163,080 kB
  • sloc: ansic: 770,564; cpp: 48,925; ruby: 40,447; javascript: 10,250; yacc: 7,045; sh: 5,602; python: 2,821; makefile: 1,672
file content (56 lines) | stat: -rw-r--r-- 1,601 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.. -*- rst -*-

Limitations
===========

Groonga has some limitations.

Limitations of table
--------------------

A table has the following limitations.

* The maximum one key size: 4KiB
* The maximum total size of keys:

  * 4GiB by default.

  * 1TiB by specifying ``KEY_LARGE`` flag to
    :ref:`table-create-flags`. ``KEY_LARGE`` can be used only with
    :ref:`table-hash-key`.

* The maximum number of records:

  * :ref:`table-no-key`: 1,073,741,815 (2 :sup:`30` - 9)
  * :ref:`table-hash-key`: 536,870,912 (2 :sup:`29`)
  * :ref:`table-pat-key`: 1,073,741,823 (2 :sup:`30` - 1)
  * :ref:`table-dat-key`: 268,435,455 (2 :sup:`28` - 1)

Keep in mind that these limitations may vary depending on
conditions.

For example, you need to use small size type for key to store many
records. Because the maximum total size of keys limitation is exceeded
before the maximum number of records limitation is exceeded. If you
use ``UInt64`` (8byte) type and store 2 :sup:`29` records, total key
size is 4GiB (= 8 * (2 :sup:`29`)). You can't add more records. You
need to choose decreasing key size (e.g. ``UInt32``) or using
``KEY_LARGE`` and :ref:`table-hash-key` to store more records.

Limitations of indexing
-----------------------

A full-text index has the following limitations.

* The maximum number of distinct terms: 268,435,455 (more than 268 million)
* The maximum index size: 256GiB

Keep in mind that these limitations may vary depending on conditions.

Limitations of column
---------------------

A column has the following limitation.

* The maximum stored data size of a column: 256GiB