Better HN
topnewbestaskshowjobs
Log inSign up

asubiotto

54 karma · joined Feb 19, 2015 (11y ago) · 11 submissions

Submissions

1.

Optimizing a CUDA FSST decompression kernel(polarsignals.com ↗)

3 points · by asubiotto · 5mo ago · discuss

2.

Questioning an Interface: From Parquet to Vortex(polarsignals.com ↗)

10 points · by asubiotto · 1y ago · discuss

comment 1y ago · link · parent

Seems like it. Changed it back!

4.

Das Problem mit German Strings(polarsignals.com ↗)

79 points · by asubiotto · 1y ago · 23 comments

comment 6y ago · link · parent

We haven't implemented disk spilling for aggregations yet. It's different from the algorithms discussed in this article in that the amount of memory used is proportional to the number of aggregation groups (buckets), rather than the number of input tuples. This makes it less likely that aggregations would need to spill to disk and requires a slightly specialized solution to figure out how to serialize intermediate aggregation results.

Sorting is a good idea. The in-memory aggregator could keep track of the aggregation columns of each bucket, sort the buckets and input that has not yet been processed and then perform an ordered aggregation on the sorted input using the already-computed intermediate result as a starting point for the group's aggregation result.

Another option is to partition the buckets and input, which would subdivide the aggregation and avoid a sort.

6.

Disk Spilling in a Vectorized Execution Engine(cockroachlabs.com ↗)

48 points · by asubiotto · 6y ago · 2 comments

comment 7y ago · link · parent

It's hard to say whether one would generally be a bigger gain than another without experimenting. We chose to focus on just execution because it was a relatively smaller project (with less side-effects) that still promised a large performance improvement. In the future, we might consider keeping data in columnar format on learner replicas to offer even better performance for users that would like to run OLAP-style queries on slightly stale data, but this would be a larger project.

comment 7y ago · link · parent

CockroachDB does target OLTP workloads. Note that the vectorized SQL engine covered in this blog post is execution-only (and used only for queries that operate on many rows). The storage layer remains row-oriented so the write performance is not affected. Rows are columnarized before processing by the execution engine.

comment 7y ago · link · parent

+1 avo is on our radar as a tool to use in the future

10.

How We Built a Vectorized SQL Engine in CockroachDB(cockroachlabs.com ↗)

35 points · by asubiotto · 7y ago · discuss

comment 7y ago · link · parent

Indeed! We spent some time running isolated benchmarks before deciding to dive into the project: https://github.com/jordanlewis/exectoy