Skip to content

Commit cc1c218

Browse files
committed
Fix opclasses names in readme.
1 parent 9279d1a commit cc1c218

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ GIN indexes
216216
JsQuery extension contains two operator classes (opclasses) for GIN which
217217
provide different kinds of query optimization.
218218

219-
* jsonb\_value\_path\_ops
220219
* jsonb\_path\_value\_ops
220+
* jsonb\_value\_path\_ops
221221

222222
In each of two GIN opclasses jsonb documents are decomposed into entries. Each
223223
entry is associated with particular value and it's path. Difference between
@@ -243,9 +243,9 @@ key "a" is presented three times. In the large branchy documents with long
243243
keys size of naive entries representation becomes unreasonable. Both opclasses
244244
address this issue but in a slightly different way.
245245

246-
### jsonb\_value\_path\_ops
246+
### jsonb\_path\_value\_ops
247247

248-
jsonb\_value\_path\_ops represents entry as pair of path hash and value.
248+
jsonb\_path\_value\_ops represents entry as pair of path hash and value.
249249
Following pseudocode illustrates it.
250250

251251
(hash(path_item_1.path_item_2. ... .path_item_n); value)
@@ -256,9 +256,9 @@ is hashed and it is higher part of entry we need to know the full path to
256256
the value in order to use it for search. However, once path is specified
257257
we can use both exact and range searches very efficiently.
258258

259-
### jsonb\_path\_value\_ops
259+
### jsonb\_value\_path\_ops
260260

261-
jsonb\_path\_value\_ops represents entry as pair of value and bloom filter
261+
jsonb\_value\_path\_ops represents entry as pair of value and bloom filter
262262
of path.
263263

264264
(value; bloom(path_item_1) | bloom(path_item_2) | ... | bloom(path_item_n))

0 commit comments

Comments
 (0)