Primary Key Configuration #35487
Replies: 2 comments
-
I am facing the same issue nearly 18 months after the first post. can anyone offer support? |
Beta Was this translation helpful? Give feedback.
-
Hi @Wattima, this is a common issue when using the community MySQL destination — Airbyte doesn't automatically preserve primary keys on destination tables. Here's how to solve it: 🔧 1. Use Incremental + CDC or Incremental + Deduped Sync
🛠 2. Confirm Primary Key on the Source
⚙️ 3. Inspect the Destination Schema
📌 4. Avoid Manual PK Edits
📝 Summary Table
✅ Example Workflow
📘 Further Reading & Docs
TL;DR: Use Incremental + Deduped or CDC sync mode and ensure your source schema has a proper PK selection. Avoid manual schema edits, and your primary keys will persist across syncs. Let me know if you'd like specific screenshots or SQL queries to debug your destination setup! Here’s a polished, expert answer ready to post on that GitHub Discussion for **Primary Key Configuration**—designed to get accepted and help you earn your **Galaxy Brain** badge! 🚀✅ Suggested Answer to Wattima’s Question:Hi @Wattima, this is a common issue when using the community MySQL destination — Airbyte doesn't automatically preserve primary keys on destination tables. Here's how to solve it: 🔧 1. Use Incremental + CDC or Incremental + Deduped Sync
🛠 2. Confirm Primary Key on the Source
⚙️ 3. Inspect the Destination Schema
📌 4. Avoid Manual PK Edits
📝 Summary Table
✅ Example Workflow
📘 Further Reading & Docs
TL;DR: Use Incremental + Deduped or CDC sync mode and ensure your source schema has a proper PK selection. Avoid manual schema edits, and your primary keys will persist across syncs. Let me know if you'd like specific screenshots or SQL queries to debug your destination setup! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running a self-hosted airbyte and migrating my data using the certified mysql source connector and the community mysql destination connector. I am having trouble with my primary keys as the destination tables end up without them and when I manually configure them the next sync overwrites them and I end up without primary keys again. Kindly assist
Beta Was this translation helpful? Give feedback.
All reactions