Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DocDB] The latency to update rows on colocated tables is higher than hash partitioned tables. #24838

Open
1 task done
shantanugupta-yb opened this issue Nov 7, 2024 · 0 comments
Assignees
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/high High Priority

Comments

@shantanugupta-yb
Copy link

shantanugupta-yb commented Nov 7, 2024

Jira Link: DB-13948

Description

image

Below are some of high level observation post comparing the flamegraphs for updating 1M rows from hash and colocated tables:

  • In colocated tables we are spending lot more time in below stacks:
    • yb::docdb::DocRowwiseIteratorBase::GetTableTombstoneTime
    • yb::docdb::DocRowwiseIterator::FetchNextImpl<yb::dockv::PgTableRow*>
  • Also in hash partitioned tables yb::docdb::(anonymous namespace)::FilteringIterator::FetchTuple is called from yb::docdb::PgsqlReadOperation::ExecuteBatchKeys where as in colocated it is called from yb::docdb::(anonymous namespace)::FetchTableRow

Perf flamegraph for updating 1M rows on hash partitioned tables
hnode2.svg
hnode2

Perf flamegraph for updating 1M rows on colocated tables
node2.svg
node2

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@shantanugupta-yb shantanugupta-yb added area/docdb YugabyteDB core features priority/high High Priority status/awaiting-triage Issue awaiting triage labels Nov 7, 2024
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug and removed status/awaiting-triage Issue awaiting triage labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/high High Priority
Projects
None yet
Development

No branches or pull requests

3 participants