toluaina / pgsync

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

Bootstraping multiple indices in multiple schema files #432

Closed virtualaidev closed 1 year ago

virtualaidev commented 1 year ago

PGSync version: latest

Postgres version: debezium/postgres:15

Elasticsearch version: docker.elastic.co/elasticsearch/elasticsearch:7.17.6

Redis version: none

Python version: 3.7

Problem Description: I have multiple indices where I separate them into their own schema.json. For instance, for the Foo index, I have placed it into its own file (foo.json), same thing with Bar index.

How do you bootstrap and run multiple indices from multiple files, for instance foo.json and bar.json.

toluaina commented 1 year ago
bootstrap -c foo.json 
bootstrap -c bar.json
virtualaidev commented 1 year ago

Hi @toluaina do you also do the same when running the pgsync?

pgsync -c foo.json -d
pgsync -c bar.json -d