Skip to content

changefeedccl: investigate initial SQL latency spike on initial scan #86469

@shermanCRL

Description

@shermanCRL

Describe the problem

Following on from this excellent work, we see a foreground SQL latency spike when a changefeed starts (initial scan).

sql spike

The above PR reduces that spike by ~20%, which is great, but ideally it would not exist or be measured in milliseconds. The above indicates ~12 seconds of latency, which will hurt production users.

The question to start with is: “what’s different about changefeed startup vs the steady state?”

To Reproduce

Reproduction is in the above PR.

Expected behavior

A changefeed backfill should have an insignificant effect on foreground SQL latency.

cc @nvanbenschoten if any thoughts, given your previous investigation.

Jira issue: CRDB-18774

Epic CRDB-24463

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cdcChange Data CaptureC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-cdcstability-period-v22.2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions