-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
importccl: lift computed column check to input converter #55845
Conversation
That was fast! I'm curious if you see a way to get rid of https://github.com/cockroachdb/cockroach/pull/55845/files#diff-e56c3f528820bd6c95bc632c127d4ef1b5ae752a8accb667690a5e07c7c9b25eR137 as well. What are the cases where |
We expect that case when there are no "targetted" columns. In #55846 is built on top of this, and I think that should do the trick. I took a couple of quick profiles and it looks like that change got rid of VisibleColumns from the Row() profile as expected. |
92d82a2
to
555457d
Compare
555457d
to
007bc36
Compare
The current implementation of checking for validating the number of rows for computed columns for in non-IMPORT INTO backups is inefficient. This commit moves the check from being performed on every row to only being performed once per import. Release note: None
007bc36
to
caaf981
Compare
This commit moves the computation of finding the expected number of data columns to the creation of the input converter, rather than re-calculating it on every row. The memory footprint of loading all of the visible columns for every row was noticeable. Release note (performance improvement): CSV imports should now be slightly faster.
caaf981
to
6a9eaf3
Compare
TFTR! |
Build succeeded: |
The current implementation of checking for validating the number of rows
for computed columns for in non-IMPORT INTO backups is inefficient. This
commit moves the check from being performed on every row to only being
performed once per import.
Fixes #55842.
Release note: None