Archive view creation code

This commit is contained in:
2025-11-05 15:26:08 +00:00
parent 630f541b4f
commit 750ff0d4ff
2 changed files with 120 additions and 0 deletions

10
view_sql_archive/view.md Normal file
View File

@@ -0,0 +1,10 @@
To make handling the dashboard easier its good practice to create views that make the underlying data more accessible. Since data does not get updated that frequently we can also use materialized views to speed up query performance at the cost of storage.
## Schemas
public: Contains the data from the meta_api_grabber application. All ad accounts.
meta: Contains data from airbyte meta api connector. Unfortunatly somewhat bugged for insights on campaign and adset level. Aggregating data from the ads level is possible but much more cumbersome and error prone then querying the stuff directly. Thats why for now I'm continuing to use the meta_api_grabber
google: Will contain the data from google from the airbyte connector assuming we get access and the connector is good.