blob: 45c2ec4a2bfeff8415784dec18242ba140ae8ae1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
title: "Managing analytical workloads in startups"
draft: true
description: ""
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
|