long2ice / meilisync

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

Primary key field documentation #30

Open Strift opened 9 months ago

Strift commented 9 months 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 4 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.