Hi there, just an odd behaviour I've noticed. The ...
# ask-community-for-troubleshooting
a
Hi there, just an odd behaviour I've noticed. The original sync worked well but the next syncs are showing
0 bytes | no records | no records
. This is odd since the database has for sure changed since then. Is there any documentation to troubleshoot? The syncs shows as success. Source: PostgreSQL Destination: Snowflake All tables have a PK.
u
Hi Alexandre, could you please include the Airbyte and connector versions as well as logs? This is not enough information to go off of at this point, unfortunately.
a
Of course! just a moment
Connectors: PostgreSQL - 1.0.22 Snowflake - 0.1.24 Log is attached 🙂
u
Hi Alexandre, thanks again for your patience! I've looked into this further and have some questions - From the logs I see that you're using the append dedup history sync mode, is that correct? A note about this - Airbyte has to go through the whole table to check for duplicates so that is why it's taking so long. From the screencap you attached in the forum post, I see that the database is large. We need to double check that changes are actually happening in the database. I would suggest trying to do a test incremental append sync with a subset of the data to see if that works. I haven't seen any bugs come up with the Postgres source connector where it seems the issue lies in this case. Would you be able to do an incremental append sync on a small subset of your data as a test?
u
Regarding the cursor field: do you have an
updated_at
field in your table?
a
Hi @Nataly Merezhuk (Airbyte) thanks for getting back to me! I am indeed using
Incremental |  Deduped + history
on all tables. I do have an
updated_at
field (I'm using ruby on rails which implements it in its ORM). All tables have a PK (usually
id
)
let me try an incremental append sync on some of the smaller tables 🙂
good morning @Nataly Merezhuk (Airbyte) when doing incremental it now fails. Any ideas what's going on?
n
I see someone has had a very similar error with a Postgres->Snowflake connection with these sync modes. https://discuss.airbyte.io/t/incremental-models-failing/2613 I think the first response is very thoughtful: They suggest going through this tutorial to see how that clustering key is calculated to debug the issue: https://airbyte.com/tutorials/incremental-data-synchronization And it looks like we also have an issue open for this: https://github.com/airbytehq/airbyte/issues/17655
a
thank you @Nataly Merezhuk (Airbyte)! 😄