tarantool / tarantool/doc

feedback: Индексы | Tarantool

Open
#2,689 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

index translate
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

<…>antool поддерживает HASH в основном для обратной совместимости.
**|Вот несколько советов. Не используйте HASH-индекс:

если просто хочется
если вы думаете, что HASH быстрее, без измерения производительности
если вы хотите выполнять перебор данных
по первичному ключу
как единственный индекс|**

Используйте HASH-индекс:

если это вторичный ключ
если вы на с<…>

https://www.tarantool.io/ru/doc/2.11/book/box/indexes/#indexes-tree

В пунктах, описывающих нежелательные варианты использования HASH-индекса, имеются следующие:

  1. "если вы хотите выполнять перебор данных"
  2. "по первичному ключу"

Отдельно варианты (1) и (2) не в полной мере понятны:

  • вариант (1) говорит, что не рекомендуется выполнять перебор данных как таковой, вариант (2) не несёт никакого посыла. Возможно необходимо объединить варианты (1) и (2) в один: "если вы хотите выполнять перебор данных по первичному ключу".

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Russian indexes documentation at the linked Tarantool URL, focusing on the HASH-index guidance and its two separate bullets about data iteration and primary keys. Clarify whether they describe one condition, then update the wording so each recommendation is unambiguous and verify the rendered section.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.