by jillesvangurp · 2w ago · 0 comments
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.
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.
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.