Replying to Avatar Michael 1011

Are you deleting all data in the table? Use TRUNCATE https://www.sqlite.org/lang_delete.html

Else see what SQLite tells you in its query plan: https://www.sqlite.org/eqp.html

Hard to suggest optimizations without knowing what you are doing

I’m deleting all rows where a specific column contains a specific string (removing events that spam scamming links from the relay db).

Reply to this note

Please Login to reply.

Discussion

You tried setting index on that column?

That could probably make it more efficient but tbh, I don’t want to mess too much with the database itself as I expect the relay software to handle that. Don’t want to mess up an upgrade later on. Thanks for the suggestion though.