Hacker News new | ask | show | jobs
by philippemnoel 12 days ago
Agreed that people need to iterate on their search index. Our users do this a lot. Postgres has a clause called INDEX CONCURRENTLY, which allows you to build an index in the background while the existing index continues to serve queries.

As for embedding, etc., you can of course do this in Postgres as well. The "T" in ETL can still be done in a Postgres-based product like ParadeDB, but you can have it participate in transactions and avoid denormalizing (or denormalize much less), etc.

2 comments

And of course, you can also index expressions to achieve this: https://www.paradedb.com/docs/reference/indexing/indexing-ex...
Transforming data inside the database in a transaction would be a bit madness. The extract and load parts are the easy part. The whole point of ETL is doing data transformations that help you do a better job when searching. Being able to iterate and refine what happens there is key as you likely won't be setting that in stone. Having to do expensive and risky data migrations on your single source of truth kind of guarantees this will never happen.

If you architect this properly, you'd end up with a database and a search index. Probably on different machines because the resource needs for both are very different. Even if you use postgresql or paradedb for both sides. Data transformation is of course going to be resource intensive (this is where you can do expensive things, that's the whole point) and you wouldn't do that anywhere near your production database typically.