Hacker Newsnew | past | comments | ask | show | jobs | submit | netcraft's commentslogin

The simple example of computing an average over a single column makes it seem like each columns data is stored by itself, but as soon as you want to do something with the correlation of two columns (such as a simple single column group by) doesnt that mean that each column would have to store both the column's value and some kind of row identifier that lets you join with the other columns in the same record? I've never looked into columnar stores so this is an honest question, I just always assumed thats how it would have to be structured

You correlate positionally, within a block/rowgroup.

If you run e.g. a `SELECT SUM(col1) WHERE col2 = x`, a columnar DB will typically produce produce a bitmap from of col2, use it to mask col1, then sum what's left—all very efficient operations.


> a columnar DB will typically produce produce a bitmap from of col2

Bitmaps fell out of fashion after the branch predictor became the slowest part of vectorized execution.

Most columnar dbs use compact selection vectors and loop over the values within them, rather than an if() over each row.

Imagine you had 1024 rows in the col1 column and only 1 row is selected, then this optimization has to only do 3-4 branches before the vector is done vs a bit-map which has to always do 1024 checks.

This became relevant somewhere in the mid 2010s and is called out in the Hive design[1] docs from that era.

[1] - https://issues.apache.org/jira/secure/attachment/12594231/Hi...


ah, that makes sense, you can assume the vectors of the columns are the same size and use position. thanks!

As long as its a single writer, you can get pretty far


"if you have worked with analytical systems in the past, you may assume that DuckDB cannot handle transactional workloads. But DuckDB has been built as a transactional, multi-connection database with full MVCC and transaction isolation since day one. Most users just never needed that in a single-user scenario. It turns out DuckDB handles transactions well: it's fast enough to compete with general-purpose databases like PostgreSQL on quite a few workloads, and the client/server pattern finally lets that machinery shine in multi-tenant, long-running deployments."

https://duckdb.org/2026/08/17/duckdb-20-highlights


Does anyone have any links to benchmarks or stories of attempting this in practice? (Even what their internal benchmark that lead them to say "it's fast enough to compete with general-purpose databases like PostgreSQL on quite a few workloads" was?)


https://duckdb.org/2026/05/12/quack-remote-protocol#benchmar...

The DuckDB devs measured it ~30x faster than PostgreSQL (and ~3x faster than Arrow Flight) for bulk transfer, which pg is known to be very slow at, and a bit faster (<2x) than pg for small writes up to 8 threads, after which they say that pg continues to scale well with number of threads but DuckDB plateaus.


Is there a guide on this anywhere?


single writer AND single reader.

https://duckdb.org/docs/2.0/connect/concurrency


For atlantic basin hurricanes (and the occasional one that could impact Hawaii he also does fantastic youtube videos


this is exactly my question. I would expect that luna is analogous to mini before, but is terra equivalent/better than 5.5 and Sol is a step above? or is terra nerfed and 5.5 is analogous to sol?


Maybe Terra = mini and Luna = nano?


Location: Memphis, TN

Remote: Yes (Only)

Willing to Relocate: No

https://ryanguill.com

https://www.linkedin.com/in/ryan-guill-92034a1/

CV: https://ryanguill.com/resume/

I am an experienced, driven, motivated engineer who is looking for high-agency, high-impact problems to solve. Bonus points for roles that are a positive impact on society.

Looking for remote roles in majority remote teams. I'm comfortable in startups and large corporations, I just want to ship fast on things that matter.

Postgres/Snowflake/DuckDB, Typescript, Python, AWS, Docker, LLMs and related tech - but I love learning new languages. I ask a lot of questions, and think in terms of processes and systems. I use and build agents and love a good SQL query.

email: [email protected]


huge if true had an episode about this recently https://www.youtube.com/watch?v=0HlLwG2xN_c


I think its understandable that you took that from the click-bait all over youtube and twitter, but I dont believe the research actually supports that at all, and neither does my experience.

You shouldnt put things in AGENTS.md that it could discover on its own, you shouldnt make it any larger than it has to be, but you should use it to tell it things it couldnt discover on its own, including basically a system prompt of instructions you want it to know about and always follow. You don't really have any other way to do those things besides telling it every time manually.


the day ends in y, water is wet. I really hate that github doesn't have any real competition. Yes, I know about gitlab, but it isnt real competition.


I have high cholesterol, have had for more than a decade. Was on a statin, they didnt help. Doubled them, they didnt help. Changed my diet radically, lost 25 lbs (I was a little overweight, but not bad), ate full medeteranian diet and did everything I could, my numbers didnt budge. Changed to a stronger one and within two weeks my numbers were perfect.

I believe for some of us its purely genetic.


There are some people who just have high cholesterol but none of the other risk factors. I'm one of them. I did a calcium score on my heart, and it came back clean. The cardiologist basically said my cholesterol is just part of who I am, and it's not causing problems.

If you're similar to me, you might want to get a second opinion. There are different kinds of LdL cholesterol, and the small, dense particles are the ones that cause blockages. Big puffy ones don't. I have mostly big puffy ones, but classifying them is a different test that has to be special-ordered.

I also have a very low resting heart rate, exercise regularly, have a high VO2Max, and have a healthy diet. So the claim that I was at major risk of a cardiac episode just didn't pass the smell test. If it wasn't for those things, I probably wouldn't have asked questions when my doctor said I should go on a statin.


unfortunately im not in the same situation. I have a high incidence in my family, my calcium score wasn't clean (especially for someone my age) and my vo2max isnt the best either. Though my many stress tests have always been fine.

I don't think im in terrible shape right now, but looking ahead 10 to 20 years, without medical intervention I probably would be.


"Changed to a stronger one"

Changed to a stronger one what?


I assumed they meant a stronger statin.


yes, changed to a stronger statin.


What does “Changed to a stronger one” mean?


yes, changed to a stronger statin.


agree completely. I used to be (and still would love to be) a process person, enjoying hand writing bulletproof artisanal code. Switching to startups many years ago gave me a whole new perspective, and its been interesting the struggle between writing code and shipping. Especially when you dont know how long the code you are writing will actually live. LLMs are fantastic in that space.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: