Better HN
topnewbestaskshowjobs
Log inSign up

maor10

2 karma · joined Dec 15, 2022 (3y ago) · 4 submissions

Submissions

1.

It's the Memory Latency, Stupid(pivotlake.io ↗)

2 points · by maor10 · 1mo ago · discuss

2.

Pivot – Fast ClickHouse alternative on iceberg / deltalake, written in Rust(pivotlake.io ↗)

3 points · by maor10 · 1mo ago · discuss

comment 3y ago · link · parent

Hi, author here :) I think there are two critical differences, one on the tech side and one on the UX side-

On the UX side, we're seated behind your database, and our goal is for you to only ever interact with your original database, and never have to query us directly. This has a lot of implications when it comes to migrations on your database (you call epsio.create_view in your original DB which is transaction safe), and not having the backend interact with two databases.

On the tech side, we're built from ground zero to be above storage, whereas differential dataflow (the package Materialize is built upon) is strongly built to be above memory (we actually played with the idea of using differential with spillover to disk- was too slow). This means we actually lose when it comes to speed (e.g. we may take ~50 milliseconds more which can be a big deal in realtime applications), but have huge gains in cost, since we're trading compute for storage.

Check out our FAQ- we have a nice little table for comparison :)

comment 3y ago · link · parent

Hi, author here :) In general, many databases have attempted something similar- but because "batch query" engines are so monumentally different than incremental engines, it becomes a very tough task and ends up being a hill of patches- which leads to many limitations.

The easiest example I can think of is the direction of the flow of data. Postgres, for example, works from "top to bottom", where you start with the result node which runs the node underneath it and so on. Each node continues requesting information from the node underneath it until it returns Null, meaning it finished. This works very well with a snapshot of the data- but if you want to maintain a high throughput with a constant stream of changes, you're going to want to work in the opposite direction- this would mean either overhauling the very way Postgres works, or adding a completely different engine into Postgres.