Skip to content

Commit 00d08ff

Browse files
authored
The max size of a key in LMDB is actually 511, not 512. (#3071)
1 parent 310647c commit 00d08ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

learn/resources/known_limitations.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ If your query is `Hello - World`:
7070

7171
## Length of primary key values
7272

73-
**Limitation:** Primary key values are limited to 512 bytes.
73+
**Limitation:** Primary key values are limited to 511 bytes.
7474

75-
**Explanation:** Meilisearch stores primary key values as LMDB keys, a data type whose size is limited to 512 bytes. If a primary key value exceeds 512 bytes, the task containing these documents will fail.
75+
**Explanation:** Meilisearch stores primary key values as LMDB keys, a data type whose size is limited to 511 bytes. If a primary key value exceeds 511 bytes, the task containing these documents will fail.
7676

7777
## Length of individual `filterableAttributes` values
7878

7979
**Limitation:** Individual `filterableAttributes` values are limited to 468 bytes.
8080

81-
**Explanation:** Meilisearch stores `filterableAttributes` values as keys in LMDB, a data type whose size is limited to 512 bytes, to which Meilisearch adds a margin of 44 bytes. Note that this only applies to individual values—for example, a `genres` attribute can contain any number of values such as `horror`, `comedy`, or `cyberpunk` as long as each one of them is smaller than 468 bytes.
81+
**Explanation:** Meilisearch stores `filterableAttributes` values as keys in LMDB, a data type whose size is limited to 511 bytes, to which Meilisearch adds a margin of 44 bytes. Note that this only applies to individual values—for example, a `genres` attribute can contain any number of values such as `horror`, `comedy`, or `cyberpunk` as long as each one of them is smaller than 468 bytes.
8282

8383
## Maximum filter depth
8484

0 commit comments

Comments
 (0)