After compiling a separate build that included the FTS5 extension, I enabled database triggers for my primary table, I.e.
CREATE TRIGGER IF NOT EXISTS thing AFTER INSERT ON table
WHEN <condition>
BEGIN
INSERT INTO fts5_table(rowid, value)
VALUES (NEW.rowid, NEW.value);
END;
... same for update and delete
I have no pragma settings on my table, but the table now frequently gets corrupted with a Database Disk Image Corrupted error. Is there a way to go around debugging this issue? It seems to happen randomly, and doesn't happen under any particular load, but during development I frequently refresh the page so it seems possible that the database is between an insert and the trigger, and therefore has some corrupted data. Otherwise, perhaps FTS5 is making some background changes.
I'm happy to try and come up with a demo project to demonstrate the issue, but because it is random it seems hard to accurately reproduce.
Prior to FTS5 and compiling my own emscripten build, this never once happened.
After compiling a separate build that included the FTS5 extension, I enabled database triggers for my primary table, I.e.
I have no pragma settings on my table, but the table now frequently gets corrupted with a Database Disk Image Corrupted error. Is there a way to go around debugging this issue? It seems to happen randomly, and doesn't happen under any particular load, but during development I frequently refresh the page so it seems possible that the database is between an insert and the trigger, and therefore has some corrupted data. Otherwise, perhaps FTS5 is making some background changes.
I'm happy to try and come up with a demo project to demonstrate the issue, but because it is random it seems hard to accurately reproduce.
Prior to FTS5 and compiling my own emscripten build, this never once happened.