@@ -451,7 +451,7 @@ Full information is in section
451
451
- :ref: `decimal <index-box_decimal >`
452
452
- TREE or HASH
453
453
* - ``'string' `` (may also be called ``'str' ``)
454
- - :ref: `string <index-box_string >`
454
+ - :ref: `string <index-box_string >`
455
455
- TREE, BITSET, or HASH
456
456
* - ``'varbinary' ``
457
457
- :ref: `varbinary <index-box_bin >`
@@ -467,22 +467,22 @@ Full information is in section
467
467
- :ref: `RTREE <box_index-rtree >`
468
468
* - ``'scalar' ``
469
469
- may include :ref: `nil <index-box_nil >`,
470
- :ref: `boolean <index-box_boolean >`,
471
- :ref: `integer <index-box_integer >`,
472
- :ref: `unsigned <index-box_unsigned >`,
473
- :ref: `number <index-box_number >`,
474
- :ref: `decimal <index-box_decimal >`,
475
- :ref: `string <index-box_string >`,
476
- :ref: `varbinary <index-box_bin >`,
470
+ :ref: `boolean <index-box_boolean >`,
471
+ :ref: `integer <index-box_integer >`,
472
+ :ref: `unsigned <index-box_unsigned >`,
473
+ :ref: `number <index-box_number >`,
474
+ :ref: `decimal <index-box_decimal >`,
475
+ :ref: `string <index-box_string >`,
476
+ :ref: `varbinary <index-box_bin >`,
477
477
or :ref: `uuid <index-box_uuid >` values |
478
478
|br |
479
- When a scalar field contains values of
480
- different underlying types, the key order
481
- is: nils, then booleans, then numbers,
482
- then strings, then varbinaries, then
483
- uuids.
479
+ When a scalar field contains values of
480
+ different underlying types, the key order
481
+ is: nils, then booleans, then numbers,
482
+ then strings, then varbinaries, then
483
+ uuids.
484
484
- TREE or HASH
485
-
485
+
486
486
.. _index-collation :
487
487
488
488
Collations
@@ -1111,40 +1111,40 @@ resource usage of each function.
1111
1111
* - Complexity factor
1112
1112
- Effect
1113
1113
* - Index size
1114
- - The number of index keys is the same as the number
1115
- of tuples in the data set. For a TREE index, if
1116
- there are more keys, then the lookup time will be
1117
- greater, although, of course, the effect is not
1118
- linear. For a HASH index, if there are more keys,
1119
- then there is more RAM used, but the number of
1120
- low-level steps tends to remain constant.
1114
+ - The number of index keys is the same as the number
1115
+ of tuples in the data set. For a TREE index, if
1116
+ there are more keys, then the lookup time will be
1117
+ greater, although, of course, the effect is not
1118
+ linear. For a HASH index, if there are more keys,
1119
+ then there is more RAM used, but the number of
1120
+ low-level steps tends to remain constant.
1121
1121
* - Index type
1122
- - Typically, a HASH index is faster than a TREE index
1123
- if the number of tuples in the space is greater
1124
- than one.
1122
+ - Typically, a HASH index is faster than a TREE index
1123
+ if the number of tuples in the space is greater
1124
+ than one.
1125
1125
* - Number of indexes accessed
1126
- - Ordinarily, only one index is accessed to retrieve
1127
- one tuple. But to update the tuple, there must be N
1128
- accesses if the space has N different indexes.
1129
- |br |
1130
- Note regarding storage engine: Vinyl optimizes away such
1131
- accesses if secondary index fields are unchanged by
1132
- the update. So, this complexity factor applies only to
1133
- memtx, since it always makes a full-tuple copy on every
1126
+ - Ordinarily, only one index is accessed to retrieve
1127
+ one tuple. But to update the tuple, there must be N
1128
+ accesses if the space has N different indexes.
1129
+ |br |
1130
+ Note regarding storage engine: Vinyl optimizes away such
1131
+ accesses if secondary index fields are unchanged by
1132
+ the update. So, this complexity factor applies only to
1133
+ memtx, since it always makes a full-tuple copy on every
1134
1134
update.
1135
1135
* - Number of tuples accessed
1136
- - A few requests, for example, SELECT, can retrieve
1137
- multiple tuples. This factor is usually less
1138
- important than the others.
1136
+ - A few requests, for example, SELECT, can retrieve
1137
+ multiple tuples. This factor is usually less
1138
+ important than the others.
1139
1139
* - WAL settings
1140
- - The important setting for the write-ahead log is
1141
- :ref: `wal_mode <cfg_binary_logging_snapshots-wal_mode >`.
1142
- If the setting causes no writing or
1143
- delayed writing, this factor is unimportant. If the
1144
- setting causes every data-change request to wait
1145
- for writing to finish on a slow device, this factor
1146
- is more important than all the others.
1147
-
1140
+ - The important setting for the write-ahead log is
1141
+ :ref: `wal_mode <cfg_binary_logging_snapshots-wal_mode >`.
1142
+ If the setting causes no writing or
1143
+ delayed writing, this factor is unimportant. If the
1144
+ setting causes every data-change request to wait
1145
+ for writing to finish on a slow device, this factor
1146
+ is more important than all the others.
1147
+
1148
1148
1149
1149
Data schema description
1150
1150
-----------------------
@@ -1225,13 +1225,13 @@ The schema would look something like this:
1225
1225
1226
1226
This alternative is simpler to use, and you do not have to dive deep into Lua.
1227
1227
1228
- ``DDL `` is a built-in
1228
+ ``DDL `` is a built-in
1229
1229
:doc: `Cartridge </book/cartridge/index >` module.
1230
1230
Cartridge is a cluster solution for Tarantool. In its WebUI, there is a separate tab
1231
- called "Schema ". On this tab, you can define the schema, check its correctness,
1231
+ called "Code ". On this tab, in the `` schema.yml `` file , you can define the schema, check its correctness,
1232
1232
and apply it to the whole cluster.
1233
1233
1234
- If you do not use Cartridge, you can still use the DDL module:
1234
+ If you do not use Cartridge, you can still use the DDL module:
1235
1235
put the following Lua code into the file that you use to run Tarantool.
1236
1236
This file is usually called ``init.lua ``.
1237
1237
0 commit comments