News for hackers. Stuff that matters.
Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by buremba on Sunday July 09, 2017 @03:21AM (#14728750)
> "except maybe from a more OLTP-centric perspective"

This is a big difference, separating compute and storage layer comes with a big overhead with the flexibility.

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by elvinyung on Sunday July 09, 2017 @06:36PM (#14732101)
I would actually argue that CockroachDB isn't really a pure OLTP play, nor does it really want to be one. If you read some of their more recent literature like [1], it seems pretty clear to me that they're headed towards building a "good enough" one-size-fits-all [2] database solution, one that can do both OLTP and OLAP on the same data (i.e. HTAP).

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...

[2] https://cs.brown.edu/~ugur/fits_all.pdf

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by johnnyhillbilly on Sunday July 09, 2017 @05:22AM (#14728983)
Can anybody give me an example of any dbms that spans the OLTP/OLAP gap properly _on the same data_?

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.

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by jssmith on Sunday July 09, 2017 @06:49AM (#14729183)
Oracle does pretty well running OLTP and analytics workloads concurrently against the same schema. While I don't generally recommend doing so, you can fire off massive scans or complex joins against a production system doing thousands of transactions per second and it handles it just fine.

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.

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by buremba on Sunday July 09, 2017 @07:38AM (#14729290)
Not that I'm aware of. It's tricky because the data storage format, query scan method, data distribution etc. requirements are different for OLTP/OLAP. However you can replicate the data to both OLTP and OLAP database and use both of them at the same time. That's people usually do. In fact, even if there is a database for this use-case, it should probably do the same process internally so that you don't need to do it in application level.
Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by ericfrenkiel on Sunday July 09, 2017 @10:56AM (#14729993)
I'm one of the founders at MemSQL, which does what you describe.
Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by elvinyung on Sunday July 09, 2017 @11:17AM (#14730094)
Totally tangential, but I'm curious if you could elaborate a bit on how compiled queries [1] work in MemSQL? Am I correctly guessing that it completely ditches the traditional Volcano-style iterator model, in a manner similar to HyPer [2]?

[1] https://docs.memsql.com/v5.8/docs/code-generation

[2] http://www.vldb.org/pvldb/vol4/p539-neumann.pdf

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by johnnyhillbilly on Friday July 14, 2017 @09:34AM (#14769641)
Looks like a sound design based on a cursory inspection :)

Question(s): Do you offer any appliances? The reason why I am asking is for computationally intense workloads where the same data may be shuffled around multiple times between processors. Can one e.g. set up MemSQL with RDMA over Infiniband?

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by neildahlke on Friday July 14, 2017 @11:29PM (#14774902)
MemSQL engineer here.

No, we do not offer appliances. We are a software only solution. I do not know of any deployments where RDMA is being utilized today. I'm interested in your use case. If you're so inclined, join chat.memsql.com (my UN is eklhad) and we can converse a bit more rapidly.

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by johnnyhillbilly on Saturday July 15, 2017 @04:33AM (#14775660)
Thank you guys for your answers :)

I am charting the landscape of distributed database systems (federated and homogenous). Node interconnectivity is just one of many potential bottlenecks.

With a sufficiently complex query, redistribution of data by hash must occur a number of times for linear scalability (based on my understanding). Ethernet based interconnectivity typically suffers from high CPU utilization and various QoS issues for this particular use case. This also seems to apply to Ethernet based fabric offerings, though I haven't kept up with that field for a couple of years.

If you guys are encountering performance issues connected to either RAM=>CPU loading or data redistribution between nodes, you may want to keep this in mind.

I may get in touch via chat at a later time as I'm slightly more than average interested in HPC database systems :) The more offerings, the better!

Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by ddorian43 on Sunday July 09, 2017 @07:31AM (#14729265)
Check snappydata ?
Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by avn2109 on Sunday July 09, 2017 @02:59PM (#14731126)
Netezza but IBM bought it and killed it.
Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by foobarzoo on Sunday July 09, 2017 @05:31AM (#14729002)
SAP HANA?
Re:SQL in CockroachDB: Mapping Table Data to Key-Value Stora... by buremba on Sunday July 09, 2017 @06:42AM (#14729165)
It's in-memory so you also need TBs of memory in order to be able to use it for analytical workloads.