Skip to content

Database migration#739

Merged
chreman merged 92 commits intodevfrom
database-migration
Sep 29, 2023
Merged

Database migration#739
chreman merged 92 commits intodevfrom
database-migration

Conversation

@chreman
Copy link
Copy Markdown
Member

@chreman chreman commented Sep 29, 2023

What's new

  • Persistence.php is now an interface
  • Changes to SQLitePersistence so that it can function as an interface to on-disk SQLite database
  • Addition of PostgresPersistence.PHP which is an interface for the persistence API
  • Introduction of DispatchingPersistence which is a wrapper for SQLite and PostgresPersistence and mediates which one is used
  • Introduction of shift_read_percentage parameter in config_local.ini which controls percentage of reads that are directed to new postgres database
  • Changes to PHP endpoints to utilize DispatchingPersistence according to the shift_read_percentage parameter
  • Changes in Python API in persistence.py to allow for multiple hosts in a primary/standby configuration
  • Updates and cleanup in Python API to align with data structures and expected returns in the PHP endpoints
  • Addition of PHP tests and a dockerised end-to-end test

@chreman chreman changed the base branch from master to dev September 29, 2023 17:04
@chreman chreman merged commit a516b1b into dev Sep 29, 2023
@chreman chreman deleted the database-migration branch March 15, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants