Skip to content

Commit 1a91cdd

Browse files
committed
Replace 'hash' index with 'tree' in the tutorial
Resolves #2351
1 parent 88c10b3 commit 1a91cdd

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

doc/getting_started/using_docker.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Create the first :ref:`index <index-box_index>` (named ``primary``):
124124
.. code-block:: tarantoolsession
125125
126126
tarantool.sock> s:create_index('primary', {
127-
> type = 'hash',
127+
> type = 'tree',
128128
> parts = {'id'}
129129
> })
130130
@@ -160,7 +160,7 @@ The terminal screen now looks like this:
160160
---
161161
...
162162
tarantool.sock> s:create_index('primary', {
163-
> type = 'hash',
163+
> type = 'tree',
164164
> parts = {'id'}
165165
> })
166166
---
@@ -172,7 +172,7 @@ The terminal screen now looks like this:
172172
id: 0
173173
space_id: 512
174174
name: primary
175-
type: HASH
175+
type: TREE
176176
...
177177
tarantool.sock> s:insert{1, 'Roxette', 1986}
178178
---
@@ -196,7 +196,7 @@ To add a secondary index based on the ``band_name`` field, run:
196196
.. code-block:: tarantoolsession
197197
198198
tarantool.sock> s:create_index('secondary', {
199-
> type = 'hash',
199+
> type = 'tree',
200200
> parts = {'band_name'}
201201
> })
202202

doc/getting_started/using_package_manager.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Here is how to create a simple test database after installation.
114114
.. code-block:: tarantoolsession
115115
116116
tarantool> s:create_index('primary', {
117-
> type = 'hash',
117+
> type = 'tree',
118118
> parts = {'id'}
119119
> })
120120
@@ -150,7 +150,7 @@ Here is how to create a simple test database after installation.
150150
---
151151
...
152152
tarantool> s:create_index('primary', {
153-
> type = 'hash',
153+
> type = 'tree',
154154
> parts = {'id'}
155155
> })
156156
---
@@ -162,7 +162,7 @@ Here is how to create a simple test database after installation.
162162
id: 0
163163
space_id: 512
164164
name: primary
165-
type: HASH
165+
type: TREE
166166
...
167167
tarantool> s:insert{1, 'Roxette', 1986}
168168
---
@@ -186,7 +186,7 @@ Here is how to create a simple test database after installation.
186186
.. code-block:: tarantoolsession
187187
188188
tarantool> s:create_index('secondary', {
189-
> type = 'hash',
189+
> type = 'tree',
190190
> parts = {'band_name'}
191191
> })
192192

locale/ru/LC_MESSAGES/getting_started/getting_started_db.po

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ msgstr ""
184184

185185
msgid ""
186186
"tarantool.sock> s:create_index('primary', {\n"
187-
" > type = 'hash',\n"
187+
" > type = 'tree',\n"
188188
" > parts = {'id'}\n"
189189
" > })"
190190
msgstr ""
191191
"tarantool.sock> s:create_index('primary', {\n"
192-
" > type = 'hash',\n"
192+
" > type = 'tree',\n"
193193
" > parts = {'id'}\n"
194194
" > })"
195195

@@ -232,7 +232,7 @@ msgid ""
232232
"---\n"
233233
"...\n"
234234
"tarantool.sock> s:create_index('primary', {\n"
235-
" > type = 'hash',\n"
235+
" > type = 'tree',\n"
236236
" > parts = {'id'}\n"
237237
" > })\n"
238238
"---\n"
@@ -244,7 +244,7 @@ msgid ""
244244
" id: 0\n"
245245
" space_id: 512\n"
246246
" name: primary\n"
247-
" type: HASH\n"
247+
" type: TREE\n"
248248
"...\n"
249249
"tarantool.sock> s:insert{1, 'Roxette', 1986}\n"
250250
"---\n"
@@ -274,7 +274,7 @@ msgstr ""
274274
"---\n"
275275
"...\n"
276276
"tarantool.sock> s:create_index('primary', {\n"
277-
" > type = 'hash',\n"
277+
" > type = 'tree',\n"
278278
" > parts = {'id'}\n"
279279
" > })\n"
280280
"---\n"
@@ -286,7 +286,7 @@ msgstr ""
286286
" id: 0\n"
287287
" space_id: 512\n"
288288
" name: primary\n"
289-
" type: HASH\n"
289+
" type: TREE\n"
290290
"...\n"
291291
"tarantool.sock> s:insert{1, 'Roxette', 1986}\n"
292292
"---\n"
@@ -310,12 +310,12 @@ msgstr ""
310310

311311
msgid ""
312312
"tarantool.sock> s:create_index('secondary', {\n"
313-
" > type = 'hash',\n"
313+
" > type = 'tree',\n"
314314
" > parts = {'band_name'}\n"
315315
" > })"
316316
msgstr ""
317317
"tarantool.sock> s:create_index('secondary', {\n"
318-
" > type = 'hash',\n"
318+
" > type = 'tree',\n"
319319
" > parts = {'band_name'}\n"
320320
" > })"
321321

@@ -510,12 +510,12 @@ msgstr ""
510510

511511
msgid ""
512512
"tarantool> s:create_index('primary', {\n"
513-
" > type = 'hash',\n"
513+
" > type = 'tree',\n"
514514
" > parts = {'id'}\n"
515515
" > })"
516516
msgstr ""
517517
"tarantool> s:create_index('primary', {\n"
518-
" > type = 'hash',\n"
518+
" > type = 'tree',\n"
519519
" > parts = {'id'}\n"
520520
" > })"
521521

@@ -543,7 +543,7 @@ msgid ""
543543
"---\n"
544544
"...\n"
545545
"tarantool> s:create_index('primary', {\n"
546-
" > type = 'hash',\n"
546+
" > type = 'tree',\n"
547547
" > parts = {'id'}\n"
548548
" > })\n"
549549
"---\n"
@@ -555,7 +555,7 @@ msgid ""
555555
" id: 0\n"
556556
" space_id: 512\n"
557557
" name: primary\n"
558-
" type: HASH\n"
558+
" type: TREE\n"
559559
"...\n"
560560
"tarantool> s:insert{1, 'Roxette', 1986}\n"
561561
"---\n"
@@ -585,7 +585,7 @@ msgstr ""
585585
"---\n"
586586
"...\n"
587587
"tarantool> s:create_index('primary', {\n"
588-
" > type = 'hash',\n"
588+
" > type = 'tree',\n"
589589
" > parts = {'id'}\n"
590590
" > })\n"
591591
"---\n"
@@ -597,7 +597,7 @@ msgstr ""
597597
" id: 0\n"
598598
" space_id: 512\n"
599599
" name: primary\n"
600-
" type: HASH\n"
600+
" type: TREE\n"
601601
"...\n"
602602
"tarantool> s:insert{1, 'Roxette', 1986}\n"
603603
"---\n"
@@ -618,12 +618,12 @@ msgstr ""
618618

619619
msgid ""
620620
"tarantool> s:create_index('secondary', {\n"
621-
" > type = 'hash',\n"
621+
" > type = 'tree',\n"
622622
" > parts = {'band_name'}\n"
623623
" > })"
624624
msgstr ""
625625
"tarantool> s:create_index('secondary', {\n"
626-
" > type = 'hash',\n"
626+
" > type = 'tree',\n"
627627
" > parts = {'band_name'}\n"
628628
" > })"
629629

locale/ru/LC_MESSAGES/getting_started/using_docker.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ msgstr ""
190190

191191
msgid ""
192192
"tarantool.sock> s:create_index('primary', {\n"
193-
" > type = 'hash',\n"
193+
" > type = 'tree',\n"
194194
" > parts = {'id'}\n"
195195
" > })"
196196
msgstr ""
197197
"tarantool.sock> s:create_index('primary', {\n"
198-
" > type = 'hash',\n"
198+
" > type = 'tree',\n"
199199
" > parts = {'id'}\n"
200200
" > })"
201201

@@ -240,7 +240,7 @@ msgid ""
240240
"---\n"
241241
"...\n"
242242
"tarantool.sock> s:create_index('primary', {\n"
243-
" > type = 'hash',\n"
243+
" > type = 'tree',\n"
244244
" > parts = {'id'}\n"
245245
" > })\n"
246246
"---\n"
@@ -252,7 +252,7 @@ msgid ""
252252
" id: 0\n"
253253
" space_id: 512\n"
254254
" name: primary\n"
255-
" type: HASH\n"
255+
" type: TREE\n"
256256
"...\n"
257257
"tarantool.sock> s:insert{1, 'Roxette', 1986}\n"
258258
"---\n"
@@ -282,7 +282,7 @@ msgstr ""
282282
"---\n"
283283
"...\n"
284284
"tarantool.sock> s:create_index('primary', {\n"
285-
" > type = 'hash',\n"
285+
" > type = 'tree',\n"
286286
" > parts = {'id'}\n"
287287
" > })\n"
288288
"---\n"
@@ -294,7 +294,7 @@ msgstr ""
294294
" id: 0\n"
295295
" space_id: 512\n"
296296
" name: primary\n"
297-
" type: HASH\n"
297+
" type: TREE\n"
298298
"...\n"
299299
"tarantool.sock> s:insert{1, 'Roxette', 1986}\n"
300300
"---\n"
@@ -320,12 +320,12 @@ msgstr ""
320320

321321
msgid ""
322322
"tarantool.sock> s:create_index('secondary', {\n"
323-
" > type = 'hash',\n"
323+
" > type = 'tree',\n"
324324
" > parts = {'band_name'}\n"
325325
" > })"
326326
msgstr ""
327327
"tarantool.sock> s:create_index('secondary', {\n"
328-
" > type = 'hash',\n"
328+
" > type = 'tree',\n"
329329
" > parts = {'band_name'}\n"
330330
" > })"
331331

0 commit comments

Comments
 (0)