Remix.run Logo
Full-Text Search with DuckDB(peterdohertys.website)
70 points by ethagnawl 5 hours ago | 15 comments
kevincox 2 hours ago | parent | next [-]

It seems that DuckDB by default downloads and runs extensions at runtime when you use certain features? This seems unnecessarily risky.

https://duckdb.org/docs/current/extensions/overview#autoload...

I would love to have more detail on this mechanism.

dkdcdev 2 minutes ago | parent [-]

I believe as it states that’s only for the core extensions listed here: https://duckdb.org/docs/current/core_extensions/overview

all are by the DuckDB team except three third-party owners. I’m unfamiliar with Vortex, but presume it’s like LanceDB and MotherDuck with a serious company behind it. and presumably the DuckDB team trusts them not to ship malware in their extension

I think it’s a UX trade off that benefits users with minimal security downsides. and you can configure this behavior. some docs here: https://duckdb.org/docs/current/operations_manual/securing_d...

bambax 3 hours ago | parent | prev | next [-]

I'm relatively new to DuckDB (coming from SQLite) and I love it so far. Some parts are magical (described in the previous article by the same author: https://peterdohertys.website/blog-posts/dab-of-duck.html)

You can point DuckDB to almost any data source and boom, you get an SQL table that you can search, sum, or join to any other data. Or you can attach existing databases from completely independent db systems, and query and join them as one, without having to first importing anything.

It feels exhilarating (if you're into that sort of thing!)

slotix 3 hours ago | parent | next [-]

We wrapped exactly this into a GUI - attach MySQL and PostgreSQL, files/ s3 as sources, query them together with DuckDB. No imports. https://streams.dbconvert.com/cross-database-sql

thechao 3 hours ago | parent | prev [-]

My honeymoon with duckdb wore off pretty quickly when I need to compile it, myself, into a single-file concordance. I understand it's open source, so I'm free to be ignored. But, it's positioning itself as a drop-in replacement for SQLite; a large part of SQLite's appeal is its ergonomics — its single-fileness — letting me deliver a rational object to my users.

EDIT: "drop-in replacement like SQLite", not "for SQLite".

gcarvalho 2 hours ago | parent | next [-]

> it's positioning itself as a drop-in replacement for SQLite

While SQLite is often used for comparison (“SQLite for OLAP”), I’ve never seen DuckDB market itself as a “drop-in” replacement. Where did you see that?

efromvt 2 hours ago | parent | prev [-]

Sqllite and duckdb serve pretty different niches; duckdb is less embeddable but on the OLAP side it’s by far the best today. I wouldn’t ever see them as competing for the same app, though

rahimnathwani 4 hours ago | parent | prev | next [-]

Has anyone used DuckDB (or anything else) to create an open source way to publish a mailbox so that a regular person can browse it and search it?

I'm aware of jmail.world, but they haven't (yet?) published the source code.

I had Claude hack something together recently: https://healdsburg-youcubed-emails.vercel.app/

It works fine for this small set of emails, although the search isn't great, and there was more preprocessing that I would have liked. (I would prefer to be able to point a single binary at a pst or mbox file, and have it magically serve it like this, even if it means I need a VPS to serve it.)

joouha 3 hours ago | parent | next [-]

Maybe https://github.com/wesm/msgvault will do what you need?

rahimnathwani 2 hours ago | parent [-]

Thanks.

msgvault seems really good. The tui is fast and FTS5 search works well.

I will definitely use it.

But it doesn't allow me to make a mailbox accessible to a wide audience, because:

- AFAICT there's no web version

- inline images don't show up

zffr 4 hours ago | parent | prev [-]

What’s your use case for this?

bambax 3 hours ago | parent | next [-]

Here's one: a client of mine has a bunch of SnapLogic pipelines that are configured to send errors via email, and there is no other persistent logging system. This results in tens of thousands of emails that are insanely hard to search and parse for any useful auditing.

rahimnathwani 4 hours ago | parent | prev [-]

Making it easy for members of the public to search and browse email sent by or to government employees.

These emails aren't published by default but email archives are often included in responses to public record requests.

Ideally anyone who receives one of these archives would be able easily inspect it themselves, and also make it available to others.

jiehong 3 hours ago | parent | prev [-]

Anyone tried both duckdb and clickhouse local?

Clickhouse seems less marketed, but seems quite similar.

efromvt 2 hours ago | parent [-]

I didn’t realize they had chDB, honestly, need to give that a shot! The local CLI isn’t quite the same ergonomically