toluaina / pgsync

Postgres to Elasticsearch/OpenSearch sync
https://pgsync.com
MIT License
1.16k stars 180 forks source link

Running `bootstrap` triggers a re-index of the entire schema #540

Open jvanderen1 opened 4 months ago

jvanderen1 commented 4 months ago

I notice that when I re-run boostrap, the schema re-indexes entirely. This is not ideal for a few reasons:

toluaina commented 3 months ago
jvanderen1 commented 3 months ago

@toluaina I came up with a solution to only run bootstrap once in our production database by splitting our schema into multiple files then combining. This is not exactly ideal as we are looking to anytime we are looking to migrate our database or add/modify the Elasticsearch indices, this triggers a re-index across all indices.

A couple more questions: