summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexv-smirnov <[email protected]>2022-06-17 14:32:39 +0300
committeralexv-smirnov <[email protected]>2022-06-17 14:32:39 +0300
commitf4cdfee1e04a4504c3fa37e7208a9fd4ed466805 (patch)
treec3bfeb17fb3af383f3fd1ecd8f4e32bbda972cb3
parent3395253f5991cf602f6bb8e80b2e0add86b01fcf (diff)
ydb docs secondary indexes table pk
Github-Pr-Author: Alex S ref:9661cc2b2e83499a81c272c1d79e7d2efdbb90f6
-rw-r--r--ydb/docs/en/core/concepts/_includes/secondary_indexes.md4
-rw-r--r--ydb/docs/ru/core/concepts/_includes/secondary_indexes.md2
2 files changed, 4 insertions, 2 deletions
diff --git a/ydb/docs/en/core/concepts/_includes/secondary_indexes.md b/ydb/docs/en/core/concepts/_includes/secondary_indexes.md
index 673f06bfa71..445ebe6334b 100644
--- a/ydb/docs/en/core/concepts/_includes/secondary_indexes.md
+++ b/ydb/docs/en/core/concepts/_includes/secondary_indexes.md
@@ -7,7 +7,9 @@ The current version of {{ ydb-short-name }} implements _synchronous_ and _asynch
* For synchronous indexes: Transactionally when the main table changes.
* For asynchronous indexes: In the background while getting the necessary changes from the main table.
-When a user sends an SQL query to insert, modify, or delete data, the database transparently generates commands to modify the index table. A table may have multiple secondary indexes. An index may include multiple columns, and the sequence of columns in an index matters. A single column may consist of multiple indexes and be part of a primary key and a secondary index at the same time.
+When a user sends an SQL query to insert, modify, or delete data, the database transparently generates commands to modify the index table. A table may have multiple secondary indexes. An index may include multiple columns, and the sequence of columns in an index matters. A single column may be included in multiple indexes. In addition to the specified columns, every index implicitly stores the table primary key columns, to enable nvaigation from an index record to the table row.
+
+Одна колонка может состоять в нескольких индексах. В дополнение к включенным в индекс колонкам в индексе всегда неявно сохраняются значения колонок первичного ключа таблицы, чтобы от найденной записи в индексе можно было перейти к записи в таблице.
## Synchronous secondary index {#sync}
diff --git a/ydb/docs/ru/core/concepts/_includes/secondary_indexes.md b/ydb/docs/ru/core/concepts/_includes/secondary_indexes.md
index 920cf6edc1c..d1d931ac1a8 100644
--- a/ydb/docs/ru/core/concepts/_includes/secondary_indexes.md
+++ b/ydb/docs/ru/core/concepts/_includes/secondary_indexes.md
@@ -7,7 +7,7 @@
* для синхронных индексов — транзакционно при изменении основной таблицы;
* для асинхронных индексов — в фоне, получая необходимые изменения из основной таблицы.
-Когда пользователь присылает SQL-запрос на вставку, изменение или удаление данных, БД прозрачно для пользователя формирует команды на изменение индексной таблицы. У таблицы может быть несколько вторичных индексов. Индекс может включать несколько колонок, при этом важен порядок указания колонок в индексе. Одна колонка может состоять в нескольких индексах, а также быть одновременно частью первичного ключа и вторичного индекса.
+Когда пользователь присылает SQL-запрос на вставку, изменение или удаление данных, БД прозрачно для пользователя формирует команды на изменение индексной таблицы. У таблицы может быть несколько вторичных индексов. Индекс может включать несколько колонок, при этом важен порядок указания колонок в индексе. Одна колонка может быть включена в нескольких индексов. В дополнение к указанным колонкам в индексе всегда неявно сохраняются значения колонок первичного ключа таблицы, чтобы от найденной записи в индексе можно было перейти к записи в таблице.
## Синхронный вторичный индекс {#sync}