Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.

alphagov/performanceplatform-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages