Skip to content

[Postgres] Avoid storing copy of replicated rows with REPLICA IDENTITY FULL #398

@rkistner

Description

@rkistner

When a table is configured with REPLICA IDENTITY FULL, a copy of the entire row is sent with every operation, avoiding any issues around TOAST values. This means we don't need to persist a copy of the raw data in the current_data collection - we can remove it for these tables.

Currently the logic for whether or not to store this is global based on the source database type - see logic here for example:

if (this.storeCurrentData && !this.skipExistingRows) {

We should make this more granular to support table-level config, to reduce storage requirements and potentially increase throughput.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions