Do we still have to denormalize? Have your schema and search it too

philippemnoel 124 points 48 comments November 13, 2026
www.paradedb.com · View on Hacker News

Discussion Highlights (8 comments)

dan_thinks

This looks exciting for some searches (top k), but the headline doesn't really fit. Yes - we still have to denormalize. Just not for some of the use cases paradedb targets. Impressive work.

jamesgresql

Any questions please go for it, ParadeDB team is watching.

gopalv

> Instead of joining the tables completely and sorting at the end, a Rank Join streams its inputs in descending score order (sorted access, or SA), building candidate result-sets as it goes. Your algorithm feels like a variant of the WAND algorithm the Snowflake Top-K pruning paper [1] pulls from. You can go distributed with this approach if you have a "gossip" protocol between workers to distribute the heap boundaries periodically. Before the AI age, a "papers we love" group was a great thing within any company. Now, Claude or Codex will know the SOTA literature around a topic like this and "uniformly distribute" the past into every single implementation of a similar idea. The future isn't uniformly distributed, but the past is getting the treatment & that's good. [1] - https://arxiv.org/html/2504.11540v1#S5

anon373839

ParadeDB is the best! I really like the Django integration ( https://github.com/paradedb/django-paradedb ). You get proper BM25 scoring, fuzzy matching, hybrid search, metadata filtering while still just using QuerySets. And you're keeping everything in Postgres, so there isn't any need to manage or sync a separate DB/search engine.

amluto

This is neat, but I’m a bit confused by the query that motivates the whole article. If I search for ‘ocaml’, I want to match users’ about_me (the users.about_me ||| 'ocaml' part), but I do really want this to match on the basis of each (completely irrelevant) post and/or comment that gets picked up by the join? I think I would rather match the user , possibly with some user scoring by the overall user score independent of my search term. I feel like I would probably execute three separate queries and merge the results myself. And the user query wouldn’t join against posts at all. Doing this would end up implicitly doing something like the optimization in the article.

bartvk

The article mainly talks about searching. What about the use case where data frequently gets updated as well? I assume you then get to update lots of duplicate data.

KellyCriterion

Denormalization & Joins are mainly a thing from 80-90s when diskspace & compute was expensive; today its easy just do denormalize everything and not use joins, since diskspace & RAM today is abundant. (sure, not true for that one verylarge enterpriseDB at megacorpX, but in 95% of uses cases these topics do not matter anymore)

jillesvangurp

Searching what you stored is nice. But usually, you want to put some ETL (extract, transform, and load) in between your data base and search indices that enables you to enrich, transform, and improve data. If you are using vector search, this is also where you calculate your embeddings and run your data to elaborate tokenization pipelines. And you might do things like calculate categorizations and other classifications that you might use for filtering. Search quality tuning inevitably involves iterating on how you index your data. The value of separation of where your database and search index live is that you can try out new indexing strategies and try different strategies. I've been consulting on how to improve search quality for some time and sorting out ETL is usually the first thing I need to do for clients. A good question is "when did you last reindex your data". If the answer is never, that usually means the clien is probably not able to do this easily and that they probably made a lot of mistakes when they set up their system first. I've helped quite a few clients like that. ETL doesn't have to mean bringing in a lot of complexity. A few simple python or whatever scripts can do the job. And many people don't actually have a lot of data which means these scripts can run quickly. I've had clients where it only took a few seconds to rebuild their search indices. ParadeDB seems premised on the notion of just skipping all this. IMHO this is usually a mistake and if you were to do this properly, you'd still end up with a separate db from which you index into ParadeDB. Of course, if you do that, you could question if you could not pick something else instead.

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed