diff --git a/dev-env/local_dwh.md b/dev-env/local_dwh.md index 137b5c6..fd7bb1d 100644 --- a/dev-env/local_dwh.md +++ b/dev-env/local_dwh.md @@ -22,7 +22,7 @@ The setup will consist on preparing: ### Pre-requisites - Before you begin, you will need to have a personal user in the production DWH with the `modeler` role granted. If you don't have one, ask Pablo to get you one. -- You will also need to have the WSL and Docker Dekstop enable, and to enable the integration between both. You can read more in this page: +- You will also need to have the WSL and Docker Desktop enabled, and to enable the integration between both. You can read more in this page: ### Creating your server @@ -190,13 +190,13 @@ You might be wondering why we have set up two different databases in your docker ### Filling `dwh` with copied data -Given the previous discussion, sometimes it might be the case you want to work fully locally in the `dwh` database with copies of data instead of references a la `dwh_hybrid. +Given the previous discussion, sometimes it might be the case you want to work fully locally in the `dwh` database with copies of data instead of references a la `dwh_hybrid`. There are many ways to populate the data. Historically, we used to do a dump from the production database with what we needed and then restored it in the local Postgres. That's an option and you can still do it. You can also leverage the same Foreign Data Wrappers extension we saw in earlier sections to copy data into your local dwh instead of just referencing it like we do in `dwh_hybrid`. This requires a bit of setup, but once you have done that, it is extremely convenient and fast. The rest of this section will detail how to set it up. -To set things up, we will create similar but not exactly equal procedures as in `dwh_hybrid`. Begin by running connecting to `dwh` and running the following code to create two stored procedures: +To set things up, we will create similar but not exactly equal procedures as in `dwh_hybrid`. Begin by connecting to `dwh` and running the following code to create two stored procedures: ```sql CREATE OR REPLACE PROCEDURE setup_fdw_for_el(