---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/dev/primary-key.md?version=v25.3
  - https://ydb.tech/docs/ru/dev/primary-key.md?version=v25.3
  - href: en/dev/primary-key/index.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: en/core/dev/primary-key/index.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Choosing a primary key

The recommendations for choosing a proper primary key for a table depend on its type:

- [Row-oriented tables](https://ydb.tech/docs/en/dev/primary-key/row-oriented.md?version=v25.3)
- [Column-oriented tables](https://ydb.tech/docs/en/dev/primary-key/column-oriented.md?version=v25.3)