|
10 | 10 | <application>pgSphere</application> uses <literal>GiST</literal>
|
11 | 11 | and Block Range INdexing (<literal>BRIN</literal>) algorithms to create
|
12 | 12 | spherical indices.
|
13 |
| - <literal>GiST</literal> index represents the R-Tree implementation for |
14 |
| - spherical objects, while <literal>BRINs</literal> are based on "summarization" |
| 13 | + <literal>GiST</literal> indexes utilize an R-tree implementation for |
| 14 | + spherical objects, while <literal>BRIN</literal> indexes are based on the "summarization" |
15 | 15 | of data blocks (<literal>pages</literal>) on physical storage in order to
|
16 | 16 | organize data searches on ranges of summarized data that can be easily skipped
|
17 | 17 | on the base of search filters (see <ulink
|
18 |
| - url="https://www.postgresql.org/docs/9.5/static/brin-intro.html"><citetitle> |
19 |
| - PostgreSQL documentation</citetitle></ulink> for further details on BRINs). |
20 |
| - As a consequence, BRINs result to be really small indexes (up to 1000 times |
21 |
| - than GiST ones), generally with lower a performance compared with a GiST one, |
| 18 | + url="https://www.postgresql.org/docs/current/brin-intro.html"><citetitle> |
| 19 | + PostgreSQL documentation</citetitle></ulink> for further details on BRIN indexes). |
| 20 | + As a consequence, BRIN indexes are small (up to 1000 times smaller |
| 21 | + than GiST ones), generally with lower performance compared with a GiST one, |
22 | 22 | but up to 100 times faster than a full sequential scan of a table performed
|
23 |
| - without any index. So BRINs are particularly suitable in a big data context. |
| 23 | + without any index. So BRIN indexes are particularly suitable in a big data context. |
24 | 24 | An index speeds up the execution time of searches based on operators <link
|
25 | 25 | linkend="op.over"><literal><@</literal></link>, <link
|
26 | 26 | linkend="op.over"><literal>@</literal></link>, <link
|
|
84 | 84 | <![CDATA[VACUUM ANALYZE test;]]>
|
85 | 85 | </programlisting>
|
86 | 86 | <para>
|
87 |
| - BRINs can be created through the following syntax: |
| 87 | + BRIN index can be created through the following syntax: |
88 | 88 | </para>
|
89 | 89 | <programlisting>
|
90 | 90 | <![CDATA[CREATE INDEX test_pos_idx USING BRIN ON test (pos);]]>
|
91 | 91 | </programlisting>
|
92 | 92 | <para>
|
93 |
| - By default, BRINs summarize block of 128 pages. The lower numbers |
94 |
| - of pages are specified, the higher granularity is reached during |
95 |
| - the searches, and performance's gap between GiST indexes and BRINs |
96 |
| - is lower (consider that BRINs size increases as well). Different |
97 |
| - summarizations can be used with the following command: |
| 93 | + By default, BRIN indexes summarize blocks of 128 pages. The smaller the |
| 94 | + number of pages specified, the higher the granularity in searches, |
| 95 | + and the gap in performance between GiST indexes and BRIN indexes will be |
| 96 | + decreased. Note that the size of the BRIN indexes increases as well. |
| 97 | + Different summarizations can be specified with the following |
| 98 | + command: |
98 | 99 | </para>
|
99 | 100 | <programlisting>
|
100 | 101 | <![CDATA[CREATE INDEX test_pos_idx USING BRIN ON test (pos) WITH (pages_per_range = 16);]]>
|
|
0 commit comments