Skip to content
Ad hoc scripts to move the performance platform off compose.io
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backdrop-staging-mongo-to-postgres
README.md

README.md

performanceplatform-migration

We are moving the performance platform from Compose.io MongoDB to Postgres.

Here are some scripts we are using to do it


backdrop-staging-mongo-to-postgres

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 "primary key".

This script creates in Postgres, a table called mongo with the following schema:

  • id: primary key, string, format $collection:$_id
  • collection: string, format $collection
  • timestamp: timestamp
  • updated_at: timestamp
  • record: json, the entire mongo record
You can’t perform that action at this time.