4 ms·
Well they said ~40 bytes per update, so 30k * 40 = 1.2MB/sec… so quite trivial. They also said 30GB per month which works out to 0.7MB/sec if load is perfectly
by zaroth 3y ago
Well they said ~40 bytes per update, so 30k * 40 = 1.2MB/sec… so quite trivial.
They also said 30GB per month which works out to 0.7MB/sec if load is perfectly constant.
- MuffinFlavored 3y ago> we’ve replaced our $10k/month Aurora How does 0.7MB/sec end up costing $10k/mo in a hosted database? Can you not achieve 1MB/sec of "queued writes" or something clever against SQLite?
- speedgoose 3y agoSQLite in WAL mode would manage for sure.
- sgarland 2y agoThat’s with their delta-compressed format. Postgres isn’t that. An empty row on its own is 24 bytes. In PostGIS, a point is 32 bytes. If you implemented it with two floats instead, that’s still 16 bytes. A timestamp is 8 bytes. Assuming a bigint PK (8 bytes) and perhaps an int tenant id (4 bytes), that’s at best 60 bytes per row, ignoring any alignment buffering. Likely more. If they’re instead using something more random as a PK, like a UUIDv4, the page splits alone will bloat that well past the raw storage. Similarly, presumably they’re indexing at least one other column, so add that to the overhead.
- jononor 2y agoThat overhead is still just a factor 2x, so might still be fine? Anyway, TimescaleDB adds compression (including delta encodings) to Postgres. Pretty sure it would handle this load just fine, as long as the inserts are batched.