| [ Web Proxy ] |
| Viewing: https://amplitude.com/docs/en/data/data-mutability | [Back] [Original] |
Products
For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
[]Amplitude Academy
Event Mutability: Sync Data Warehouse Changes to Amplitude
Learn to sync data warehouse changes to Amplitude.
Get startedData mutability applies INSERT, UPDATE, and DELETE operations from your warehouse to event data already in Amplitude, so corrections, late-arriving rows, and deletions in your source of truth propagate to your analytics. Mirror Sync delivers these operations from Snowflake, Databricks, Google BigQuery, and Amazon S3.
Turn on Mirror Sync when your warehouse is the source of truth and rows there change after first write, such as GDPR or CCPA deletions, backfilled corrections, or late-arriving updates. Stay on standard append-only ingestion when events never change after they land.
This functionality is especially valuable for organizations that need to:
Data Mutability is available through the following warehouse integrations.
INSERT, UPDATE, and DELETE operations.INSERT, UPDATE, and DELETE operations.CHANGES() change history.INSERT, UPDATE, and DELETE operations for the Event data type.enable_change_history = TRUE).INSERT, UPDATE, and DELETE operations.When you enable Mirror Sync with data mutability:
Change detection: The integration monitors your warehouse for data changes using native change tracking features (CDC for Snowflake, CDF for Databricks, CHANGES() change history for BigQuery, or file metadata for S3).
Operation processing: Amplitude processes three types of operations:
INSERT: Adds new events to Amplitude.UPDATE: Modifies existing events in Amplitude.DELETE: Removes events from Amplitude.Amplitude finds matching events based on the combination of user_id, insert_id, and event_time. All three fields must match before Amplitude can identify and modify the correct event.
Data synchronization: Changes apply to keep consistency between your warehouse and Amplitude.
Enrichment Services Disabled
When using Mirror Sync with data mutability, Amplitude disables enrichment services, including:
Disabling enrichment ensures your data remains exactly as it exists in your source of truth.
insert_id to prevent duplication.Event Volume Impact
Data mutations count toward your event volume:
Monitor your usage and contact sales if you need additional event volume.
DATA_RETENTION_TIME_IN_DAYS must be 1 (recommended: 7 days).Keep the following best practices in mind as you enable data mutability.
Start with a test project: Create a dedicated test environment to validate your mutation logic before implementing in production.
Design for idempotency: Ensure your mutation operations can be safely retried without causing data inconsistencies.
Monitor data quality: Implement validation checks to ensure mutations apply correctly.
When using data mutability for privacy compliance:
Stop data flow first: Before you delete user data, ensure you send no new data about that user to Amplitude.
Use User Privacy API: For complete user deletion, use the User Privacy API with warehouse deletions.
Verify deletion: Confirm that deleted data no longer appears in your analytics.
If you're migrating from a standard ingestion strategy to Mirror Sync, follow these steps.
Create cutoff strategy:
WHERE time < {cutOffDate}).Wait for cutoff: Allow the cutoff date to pass and verify no new data flows through the old connection.
Create new Mirror Sync source:
WHERE time >= {cutOffDate}).Clean up: Remove the old source connection after verifying the new one works correctly.
Events don't update
Missing deletions
Data inconsistencies
Was this helpful?
On this page
Platform
Resources
Partners & Support
20122026 Amplitude, Inc.. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.
| Web Proxy Viewer | New URL | Original Page |