Database organisation

Using two databases instance

The application uses two PostgreSQL databases:

  • webapp: stores and serves the data used to administer and display objects for the “La Carte” and “L’Assistant” applications

  • warehouse: used for all data processing, calculations, and consolidation work

The goal is to separate the databases so that data processing does not impact the performance of the web application. We also need much more storage capacity for data processing, and higher responsiveness for the web application.

webapp_sample database

webapp_sample is a database stored in webapp instance in preprod and locally (not in prod)

It is used to compute a sample of data (Auray and Montbeliard), this sample is computed weekly via a Airflow DAG is used to run tests