You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a Rails project where I'm trying to integrate the usage of OpenSearch, using PGSync to sync data from PostgreSQL.
I want to test the features that are making requests to OpenSearch, but I need the data that is generated within the test (mock data) to be synced to OpenSearch with PGSync. This data is persisted at PostgreSQL on a dedicated table name project_test.
What is the best way to do this sync? Duplicate the schema inside schema.json to have two similar indexes, one for the dev database and one for the test database?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have a Rails project where I'm trying to integrate the usage of OpenSearch, using PGSync to sync data from PostgreSQL.
I want to test the features that are making requests to OpenSearch, but I need the data that is generated within the test (mock data) to be synced to OpenSearch with PGSync. This data is persisted at PostgreSQL on a dedicated table name
project_test
.What is the best way to do this sync? Duplicate the schema inside
schema.json
to have two similar indexes, one for the dev database and one for the test database?Thanks in advance, and a Happy New Year! 🎉
Beta Was this translation helpful? Give feedback.
All reactions