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

[WIP] changefeedccl: support tables with more than one column family #30414

Closed
wants to merge 1 commit into from

Commits on Sep 19, 2018

  1. changefeedccl: support tables with more than one column family

    If a table has multiple column families and only one of them is changed
    in a given statement, only the kv for that column family will be changed
    by the sql system. This means we wouldn't have enough data to
    reconstruct the row.
    
    We can fetch the row's entire kv data with a prefix scan that's forced
    to be at the timestamp of the changed kv. This has two issues
    
    - it introduces a blocking kv read (in the common case, this is not as
      bad as it sounds since this code is likely running on the leaseholder
      and the data can be served locally)
    - if N column families were updated at once, then we'll run this process
      N times and get N exact duplicates in the output
    
    Release note (enterprise change): CHANGEFEEDs now support tables with
    multiple column families, though with degraded performance.
    
    Closes cockroachdb#28667
    danhhz committed Sep 19, 2018
    Configuration menu
    Copy the full SHA
    cc96ff0 View commit details
    Browse the repository at this point in the history