by shoyer · 5y ago · 0 comments
My two cents (as the author of Xarray, one of the Python libraries mentioned in this report) is that it’s questionable whether we need “array databases” at all. Certainly we need to be able to store arrays and compute with them, but do we need an integrated solution that does both at the same time with a query language that looks like SQL? Maybe not, in an era of cloud computing, prolific open source software and when everyone who works with big array datasets already knows Python.
This query language that looks like SQL is an official part of SQL now [1]. Surely there is place for integrated DB solutions that let you work with both relational and array data in one place? There are more benefits in this than just performance/scalability. Think of building services on top of big array datasets, beyond one-off data science experiments.
In kdb you go from primitives to arrays to tables. In SQL you go from primitives straight to tables which makes it cumbersome to do any simple one column or array ops. Such as excluding a column from a select expression.
Compare first class array support in sql vs hypothetical programmable sql
select table.* - {name, age}
from table
vs select (
select column
from table
where column
not in ('name', 'age')
)
from tableThis make a lot of sense. Because primitives ARE "tables", columns ARE "tables".
A primitive is a relation of one column/row. This is what allow you to do:
SELECT * FROM (SELECT 1)a
What sql/rdbms not do it well is to exploit this very well.Many orgs these days store all data in data lake shared-disk architectures and pull down the subsets. The performance hit of pulling down data over high bandwidth channel such as s3 - ec2 is much more reasonable to companies than storing everything on expensive compute instances just so that the "data would be there" ready for querying if somebody ever needs it.