long2ice / meilisync

Realtime sync data from MySQL/PostgreSQL/MongoDB to Meilisearch
https://github.com/long2ice/meilisync
Apache License 2.0
285 stars 43 forks source link

Primary key field documentation #30

Open Strift opened 1 year ago

Strift commented 1 year ago

Hello,

I've noticed that the documentation doesn't explain how to configure a table's primary key.

AFAIK this is achieved by adding the pk field in the YAML configuration. But there might be some additional information we want to add that I'm not aware of.

Cheers,

LetTheComputerDecide commented 6 months ago

This is important. Meilisync didn't sync the data from mongodb in my case, even though it incorrectly reported it did. Specifying pk in the config solved the issue.