Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

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

About

Ad hoc scripts to move the performance platform off compose.io

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages