We are moving the performance platform from Compose.io MongoDB to Postgres.
Here are some scripts we are using to do it
Staging has a mongodb running on the PaaS using Compose.io, this spins up 5 instances of a worker which writes from Mongo to Postgres.
The Mongo "schema" was: one collection per dataset, with the
_id field as
This script creates in Postgres, a table called
mongo with the following
id: primary key, string, format
collection: string, format
record: json, the entire mongo record