frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Who's Using DuckDB in Production?

3•yakkomajuri•5h ago
Inspired by the post that's on the front page as I write this [1] I'm interested to hear about who's using DuckDB in production and how.

We have a tool live that uses it and I'm quite happy so I'm both looking for interesting use cases from others but also to be honest I'm reasonably sure I've just identified today that DuckDB is leaking memory quite seriously [2] so I'm curious to hear if other people have noticed this or if it's maybe something that's not as relevant to others since people might be running DuckDB pipelines in ephemeral envs like lambdas etc. where a memory leak might not matter as much.

[1] https://news.ycombinator.com/item?id=46645176

[2] https://github.com/duckdb/duckdb/issues/20569

Comments

delaminator•5h ago
This is expected behaviour, not a bug.

DuckDB (like most database systems and many applications using memory allocators like jemalloc or mimalloc) doesn't immediately release memory back to the OS after freeing it internally.

Memory allocator strategy - DuckDB uses an allocator that keeps freed memory in a pool for reuse. Returning memory to the OS is expensive (system calls, page table updates), so allocators hold onto it anticipating future allocations.

yakkomajuri•4h ago
Thanks for explaining this! I suspected there was some additional context and was digging into it now. Problem is that the memory never seems to be freed, and I could update my issue to show this.

Maintainers have acknowledged problems like this on other issues too.

But I'll nevertheless read more into this!

delaminator•3h ago
tbh i might dig a bit deeper as it reports zero memory use itself.
yakkomajuri•4h ago
Also the docs say that dropping tables should free their memory:

"Running DROP TABLE should free the memory used by the table"

Source: https://duckdb.org/docs/stable/sql/statements/drop

Ask HN: Claude Opus performance affected by time of day?

23•scaredreally•9h ago•27 comments

Ask HN: Share your personal website

895•susam•2d ago•2319 comments

Tell HN: The way I do simple data management for new prototypes

7•AndreyK1984•14h ago•5 comments

Ask HN: How can we solve the loneliness epidemic?

748•publicdebates•1d ago•1184 comments

Ask HN: How are you doing RAG locally?

391•tmaly•2d ago•151 comments

Ask HN: How have you or your firm made money with LLMs?

7•bwestergard•9h ago•7 comments

Tell HN: YouTube gave my username switzerland to a half government organization

18•faebi•14h ago•5 comments

Ask HN: What did you find out or explore today?

212•blahaj•2d ago•396 comments

At the phase 'build a startup cause I can't get hired, and maybe I'll get hired'

7•danver0•3h ago•1 comments

Ask HN: Those who quit tech, moved back home, what do you do?

12•akudha•5h ago•5 comments

Ask HN: Browser extension vs. native app for structured form filling?

2•livrasand•3h ago•0 comments

Ask HN: One IP, multiple unrealistic locations worldwide hitting my website

41•nacho-daddy•1d ago•24 comments

Ask HN: Who's Using DuckDB in Production?

3•yakkomajuri•5h ago•4 comments

Ask HN: Local media server, receive and send audio?

2•thedangler•5h ago•1 comments

Ask HN: When "Two-Factor Authentication" (2FA) Aren't Two

2•s3131212•6h ago•1 comments

Ask HN: Have you ever tried low-code tools for your work?

3•andre_fernandes•13h ago•1 comments

Ask HN: LLM Poisoning Resources

4•totallygeeky•7h ago•0 comments

Ask HN: Tips for better image generation? I need help

2•gweets•7h ago•1 comments

Why is nobody using this? Full-duplex voice streaming with Gemini Live in React

3•loffloff•7h ago•0 comments

Ask HN: What are your best purchases under $100?

76•krishadi•1d ago•217 comments

Tell HN: HP Ultra G1a Bios Freezing Issue

2•BizarroLand•8h ago•0 comments

Ask HN: Iran's 120h internet shutdown, phones back. How to stay resilient?

113•us321•3d ago•99 comments

Ask HN: Is sending a lot of requests but respecting rate limits DOSing?

2•SpyCoder77•8h ago•0 comments

Ask HN: Analogy of AI IDEs for code vs. "AI IDEs" for personal health data

2•nemath•8h ago•0 comments

Ask HN: How do you safely give LLMs SSH/DB access?

80•nico•2d ago•105 comments

Ask HN: AI music covers in 2026?

16•sexy_seedbox•1d ago•9 comments

Ask HN: What are you working on? (January 2026)

256•david927•5d ago•874 comments

Tell HN: Execution is cheap, ideas matter again

14•keepamovin•1d ago•5 comments

Ask HN: How to make spamming us uncomfortable for LinkedIn and friends?

12•zx8080•1d ago•7 comments

Ask HN: Is token-based pricing making AI harder to use in production?

2•Barathkanna•10h ago•5 comments