Posted by upmostly 12/12/2025
Edit: This should now be fixed for you.
You can do the same with DuckDB and Postgres too.
That migration would be making two changes: document-based -> relational, and server -> library.
Have you considered migrating to Postgres instead? By using another DB server you won't need to change your application as much.
Why?
But I suspect with JSON the overhead of parsing it each time might make it more efficient to update all the indices with every insert.
Then again, it's probably quicker still to insert the raw SQL into a temporary table in memory and then insert all of the new rows into the indexed table as a single query.
No, in section 2 the table is created afresh. All 3 sections start with a CREATE TABLE.