Skip to content
Ad hoc scripts to move the performance platform off
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


We are moving the performance platform from MongoDB to Postgres.

Here are some scripts we are using to do it


Staging has a mongodb running on the PaaS using, 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.