forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
5 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters