aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/posts/analytics/index.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/content/posts/analytics/index.md b/content/posts/analytics/index.md
new file mode 100644
index 0000000..268dff7
--- /dev/null
+++ b/content/posts/analytics/index.md
@@ -0,0 +1,29 @@
+---
+title: "Managing analytical workloads in startups"
+draft: true
+categories:
+ - PostgreSQL
+---
+
+## Current issues
+
+- Issues with querying large dataset in online postgres (90GB)
+- The dataset is analytics events and some business models.
+- Often used for AB testing purpose, for instance measuring conversion rates grouped by some experiment values.
+- We a have a readonly database, the queries are slow
+
+## Hypothesis/Solutions
+
+- Writing better queries: this also needs to be maintainable (e.g. we add more and more queries, it should not need to be carefully handcrafted)
+- Using another engine
+ - Postgres like but OLAP oriented
+ - Pure OLAP (Clockhouse, Duckdb)
+ - AWS for simplicity (Athena or Redshift Spectrum)
+ - Scripts on parquet files: maximum adaptability
+- How to get the data?
+ - it seems that it is already parquets
+ - it looks too slow to download all the data periodically: process in the cloud or incremental sync
+
+## Resources
+
+- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ExportSnapshot.html