139 karma · joined Jul 12, 2011 (15y ago) · 81 submissions
Ex SinglestoreDB (formerly known as MemSQL) cofounder + CTO
Currently working on Postgres @ Azure
medium.com/@adamprout
comment 2mo ago · link · parent
512 shards, each with one Postgres primary each on an r8g.16xlarge
480 Neki routers, each on its own 8xlarge instance
That's ~250K queries/sec per router which seems lowish for this type of workload? The routers won't be doing very much (parse query, route it to proper shard?).
comment 2mo ago · link · parent
I would add a few other things to the list of scaling problems. Some SQL features are hard to scale out (auto_increment/serial columns, unique secondary keys, foreign keys, etc.). Some SQL query operators are hard to scale out for OLTP queries that want low latency and high throughput (DISTINCT, LIMIT/TOP-N, non-collocated joins). I take it SpacetimeDB is a nosql database, so these problems are less important to them?
As to how spacetimedb plans to scale out, I didn't follow it fully. It's hard to take the spacetimedb folks seriously (see: https://strn.cat/posts/spacetime/).
7.
Agents Are Better Testers Than We Are(medium.com ↗)
1 points · by AdamProut · 6mo ago · 1 comment
comment 2y ago · link · parent
comment 2y ago · link · parent
It would be great if the Postgres community could get behind one good opensource extension for the various columnstore data use cases (querying data stored in an open columnstore format - delta, iceberg, etc. being one of them). pg_duckdb seems to have the best chance at being the goto extension for this.
comment 2y ago · link · parent
comment 2y ago · link · parent
[1] https://wiki.postgresql.org/wiki/Full_page_writes [2] https://dev.mysql.com/doc/refman/8.0/en/innodb-doublewrite-b...
14.
Does MongoDB Support ACID Transactions?(medium.com ↗)
1 points · by AdamProut · 2y ago · 2 comments
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 3y ago · link · parent
[1] https://docs.databricks.com/en/clusters/photon.html [2] https://dl.acm.org/doi/10.1145/3514221.3526054
comment 3y ago · link · parent
There are AWS instance types (I3en) with large and very fast SSDs (many times higher IOPS then EBS).
comment 3y ago · link · parent
It works well if the data is stored as immutable files (i.e., A log structure merge tree) or is not index at all (classical columnstores). S3 doesn't provide an efficient way to update a file.
[1] https://dl.acm.org/doi/10.1145/2882903.2903741 (snowflake SIGMOD paper) [2] https://dl.acm.org/doi/10.1145/3514221.3526055 (singlestore SIGMOD paper)
comment 3y ago · link · parent
No "mainstream" database I'm aware of has a global single writer design.
comment 3y ago · link · parent
That said, using pgvector (or using other SQL databases with vector search support.. many have this capability) will let you do both ANN and your usual SQL filtering and joining (or full text, or.. etc) to produce more hand tuned results to a query. This is something the specialized vector databases don't have much support for.
comment 3y ago · link · parent
Also, isn't taking a bet on a very recently launched database as a service based around an open source database also pretty risky? Say for example the very recently launched Clickhouse Inc. service (which your a co-founder of?).
comment 3y ago · link · parent
comment 3y ago · link · parent
[1] https://www.singlestore.com/blog/separating-storage-and-comp...
(disclosure: SingleStoreDB CTO)
comment 4y ago · link · parent
comment 4y ago · link · parent
[1] https://www.crunchbase.com/organization/clickhouse/company_f...
comment 4y ago · link · parent
Most other cloud DWs have public TPC-H or TPC-DS results that are easily googlable. Clickhouse is missing for a reason...
- https://research.gigaom.com/report/data-warehouse-cloud-benchmark/
- https://www.databricks.com/blog/2021/11/02/databricks-sets-official-data-warehousing-performance-record.html
- https://celerdata.com/blog/starrocks-queries-outperform-clickhouse-apache-druid-and-trino
- https://aws.amazon.com/blogs/big-data/amazon-redshift-continues-its-price-performance-leadership/
Our results are here: https://www.singlestore.com/blog/tpc-benchmarking-results/