Hello, I synced a single large table from Postgre...
# replication-troubleshooting
p
Hello, I synced a single large table from Postgres to BigQuery. The Airbyte UI displays:
Sync Succeeded
Last attempt: 1.03TB
But a simple
psql$ \d+
yields:
table: 405GB
Why does Airbyte claim it synced nearly double the expected size? Note: I crosschecked the number of records emitted: both Airbyte and psql yield the same number of total records in the table.
o
what’s your sync mode? if it’s deduped+history airbyte has to maintain an additional history table to check against
and it would make sense that it’s double the size in this case
p
Sync mode is
Incremental Sync - Append
Ah - I was assuming that
Last attempt: 1.03 TB
referred to the number of bytes going over the network, but perhaps it refers to the total storage used in my GCS clearing house?
b
Hey, @Omar Mayar, how does one see if they have deduped+history enabled for a connection? I only see • Full refresh | Append • Full refresh | Overwrite • Incremental | Append
o
Included GCS as an example, but every destination page should have that overview
b
Perfect. Thank you.
👍 1
l
I’m in a similar situation (initial sync for a ~250M row table from postgres to bigquery, using append incremental sync) and airbyte has been hung for several hours seemingly trying to figure out the desired “fetch size” (as per https://github.com/airbytehq/airbyte/pull/12400 i think) the query airbyte has issued (according to both its logs, and psql
pg_stat_activity
) is just
SELECT "col_names_redacted" FROM "public"."versions" ORDER BY "id" ASC
- there is no
LIMIT
on this query, so pg is doing a full table scan. presumably when this completes, subsequent queries will have a
LIMIT
as determined by that dynamic fetch size code, but it seems weird to not have a
LIMIT
on the initial query @Peter Kong did you have this problem as well? i’m running airbyte
master
from today
p
I have not run into this 'fetch size' issue.