mojo-sqlite: a whole database in one file
On 200,000 inserts through one prepared statement, Python sqlite3 took 216 to 226 ms and mojo-sqlite took 80 to 82. Every SQL test file must give identical output through both.
Posts with this tag: 4
On 200,000 inserts through one prepared statement, Python sqlite3 took 216 to 226 ms and mojo-sqlite took 80 to 82. Every SQL test file must give identical output through both.
Every post on amarbaro.com starts as a text file with a block of fields. The import checks nine required fields, seeds one row, and from then on the row is what the site serves.
A one line change to the database pointer would have made our automatic rollback fail. We found it by reading the runbook before the switch, and rehearsed the manual return in 5 to 6 seconds.
A database holds the facts a site needs to remember. We show the tables in a real backup of one of our shops and how our blog posts turn from text files into rows.