Live data from Hacker News

Faster hash joiner with vectorized execution

cockroachlabs.com

11–20 of 21 posts

Re: Faster hash joiner with vectorized execution

#11
post #9

Hey everyone, I'm the intern who did this work, happy to answer any questions if you have them!

Your work is awesome as is your excellent detailed writeup. Appreciate the links and refs to the background papers also. Thank you for helping make CRDB even better. You should be very proud of this work.

:D

Re: Faster hash joiner with vectorized execution

#12
post #3

Awesome work. Really cool! I have a hobby project to write an analytics DB that uses ISPC for vectorized execution. Currently not much (sums are real easy) but I really wonder if it could reduce the effort to vectorize these sorts of things.

Is it open source / online?

Re: Faster hash joiner with vectorized execution

#17
Great write-up. Is the long-term vision to go completely to the vectorised query execution model, or are there cases where a row-oriented plan might be better, such as cases when there are complex computations involving multiple columns of a single row?

Re: Faster hash joiner with vectorized execution

#19
post #17

Great write-up. Is the long-term vision to go completely to the vectorised query execution model, or are there cases where a row-oriented plan might be better, such as cases when there are complex computations involving multiple columns of a single row?

We don't have any plans to remove the row-by-row execution engine. Likely, we'll have some analysis during planning that can inform whether to use the row-oriented or column-oriented engine. I think the use cases for the row-oriented engine are exactly what you mention - things like single-row computations or more OLTP queries like point scans, inserts, update etc - where the overhead of setting up the data structures required to use the column-oriented engine would dominate.

Re: Faster hash joiner with vectorized execution

#20
post #12
post #3

Awesome work. Really cool! I have a hobby project to write an analytics DB that uses ISPC for vectorized execution. Currently not much (sums are real easy) but I really wonder if it could reduce the effort to vectorize these sorts of things.

Is it open source / online?

Nope, and by toy I really mean toy. It can handle a single type of query and that's it. Maybe one day I'll polish it up.
Post reply on HN