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
What would be the best way to add a dynamic sync, i.e.
automatically detect new, unsynced collections in mongo db
add all fields of a collection without having to specify in momyfile.json
re-read momyfile.json regularly, possibly from a remote location (http), with auto --import on detecting new collections
With at least 3. implemented 1. & 2. would basically come for free, as one could write some application/mongodb-side script to publish a new momyfile when needed, without having to restart momy.
The text was updated successfully, but these errors were encountered:
Hi @miraculixx, an interesting question, eventhough I have no good answer about it now...
I think, typically, your 1. & 2. are not easy for automation because there's no perfect way to convert the data from NoSQL to SQL. How about separating the problem and focus to these steps below at first?:
add some field definitions to momyfilemanually
detect momyfile changes and add some column to MySQL DB (not implemented)
add some new fields to a document in the Mongo DB collection, then momy will detect the changes
At this point, we need to drop and recreate a table in MySQL, but it would cost too much. It seems that we need some implementation to handle the diff of momyfile.
What would be the best way to add a dynamic sync, i.e.
With at least 3. implemented 1. & 2. would basically come for free, as one could write some application/mongodb-side script to publish a new momyfile when needed, without having to restart momy.
The text was updated successfully, but these errors were encountered: