55 points · by yinso · 9y ago · 33 comments
Under the terms of the Unified HN Convention, agreed 2015, every thread about CockroachDB must by law contain a series of complaints about the name of the database. Please post yours below.
To help you get started, here's some prompts you might use:
"My Enterprise CTO will never go for something named..."
"I just think the name sounds really disgusting and off-putting..."
"Marketing a product is at least as important as making a product, and this is bad marketing..."
As it stands, it seems to me that CockroachDB is mostly just reinventing Spark from scratch, except maybe from a more OLTP-centric perspective.
I know the hype is to "use NoSQL" but the reality is that there's a limited set of cases where the existing solutions truly make sense. Generally speaking, SQL is the best choice for many companies. That CockroachDB is bringing some new ideas to the SQL space is something that should be lauded. And I think they're doing it in a way that can't really be replicated easily or efficiently by current systems (which is perhaps why they're receiving so much attention.)
[1] https://www.cockroachlabs.com/docs/stable/cockroachdb-in-com...
Spark has a sophisticated [1] query engine, which seems perfectly capable of pruning partitions and pushing down index scans into data sources. Yes, Spark can't do writes, so you'll still have to build a transactional KV store that sits underneath the query layer, but you won't have to implement SQL from scratch. (This seems to be similar to the approach taken by e.g. SnappyData [2] and Splice Machine [3].)
[1] https://databricks.com/blog/2016/05/23/apache-spark-as-a-com...
[2] http://snappydatainc.github.io/snappydata/
[3] http://doc.splicemachine.com/2.0/GettingStarted/Architecture...
Like some of the other comments in this thread, the idea was to provide all the guarantees of a OLTP store (HA, ACID, Scalability, Mutations etc) with the powerful analytic capabilities of Spark.
Now of course Spark makes up for it with its great flexibility and scalability, but I do not really see the two technologies as competing ones.
This even without getting into the other parts of the data model (insert, update, delete) that do not exist in Spark (or "kind of" exist), by design.
Also, last I checked Spark had very limited support for mutating data in SQL; it was designed for queries. Cockroach has to do both.
Spark has some support for SQL DML, and to me it actually mostly seems like a concern for the underlying KV layer to provide ACID transactions, and expose them to Spark through the Data Sources API.
[1] https://www.cockroachlabs.com/blog/local-and-distributed-pro...
This is a big difference, separating compute and storage layer comes with a big overhead with the flexibility.
Furthermore, it seems to me that query evaluation techniques aren't really that different between OLTP and OLAP workloads, i.e. the difference is mainly in the storage format.
In that sense, I think it follows that Spark is a good fit as the query layer. Notice phrasings like "arbitrary computations close to your data". That's basically exactly what Spark already is. I think there's a lot of synergy in combining it with a strongly consistent distributed storage engine.
Anyways, my $0.02, evidently not a very popular opinion ¯\_(ツ)_/¯
[1] https://www.cockroachlabs.com/blog/local-and-distributed-pro...
Potentially added constraints: -ACID for OLTP
-## TB+
-30-way analytical joins on complex criteria and multiple data sets with billions of entries
-fast iterations on data prep for analytics, so analysts can make, find and correct errors
-proper workload management (almost no "stupidly designed" queries)
-HA
-HPC
I'm asking because I can't see this without hw and sw being integrated to allow for it (appliance). Are there any cloud offerings that live up to this?
EDIT: Formatting got mangled on submit.
In my view, one reason that we don't see huge demand for this combination is that the schema that makes sense for analytics is often different from that which makes sense for the online system.