Repository navigation
source-mssql: enable state compression - #33225
Marius Posta (postamar) merged 8 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
| } | ||
|
|
||
| @Override | ||
| public boolean compressSchemaHistoryForState() { |
There was a problem hiding this comment.
Should we just flip this to true and refactor rest of code? Schema history compression currently applies to MySQL & MsSQL, so could be a way to simplify code + make sure we apply it to default to any future connector that has a notion of schema history
There was a problem hiding this comment.
I agree in principle but I'd like to do that change in a separate PR, if that's OK.
There was a problem hiding this comment.
That's fine, followup works
Akash Kulkarni (akashkulk)
left a comment
There was a problem hiding this comment.
Looks good, one small comment
| // Increase schema history size to trigger state compression. | ||
| // We do this by adding lots of columns with long names, | ||
| // then migrating to a new CDC capture instance for each table. | ||
| // This is admittedly somewhat awkward and perhaps could be improved. |
There was a problem hiding this comment.
Not blocking, since it seems to be a heavy lift, but in the future we could configure this as a general "test" config to make it smaller than 3MB : https://github.com/airbytehq/airbyte/blob/master/airbyte-cdk/java/airbyte-cdk/db-sources/src/main/java/io/airbyte/cdk/integrations/debezium/internals/AirbyteSchemaHistoryStorage.java#L41
There was a problem hiding this comment.
I'm holding out until I better understand how Debezium + SQL Server do CDC. Perhaps I'm overlooking something obvious. Otherwise yes absolutely let's trigger the compression sooner.
Co-authored-by: postamar <postamar@users.noreply.github.com>
Most of the work here involved testing that this works, which was a bit more involved than for MySQL.