-
Notifications
You must be signed in to change notification settings - Fork 0
Add 'skip_last_n_seconds' config parameter for incremental replication #1
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
Changes from 2 commits
1e7a489
ebee6ac
83c62a6
5a612d4
1ffe0d4
0a248fc
edf960b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ def setUp(self) -> None: | |
'password': 'foo_pass', | ||
'port': 12345, | ||
'use_secondary': False, | ||
'limit': None | ||
'limit': None, | ||
'offset': None | ||
|
||
} | ||
self.stream = {'tap_stream_id': 5, 'stream': 'bar', 'table_name': 'pg_tbl'} | ||
self.md_map = { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really clear on this
do you have an example? meaning if we do incrementing serial primary key, we put a value like "1000" and if the last ID is 9999 we will only replicate up to ID 8999?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the above is correct, I think maybe the term
offset
can be avoided, because it's very similar to pagination terminologies (limit and offset) yet behaves differently, especially the interval one.There are also 2 units here (interval uses
seconds
, and Incrementing ID usescount
) and they are both just expressed as number (offset: N
). This could be confusing, maybe we can separate to two different config?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think i'll skip implementing
skip_last_n_rows
in that case, as we don't really need it right now, let's have only one new config value.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good! 👍