{"id":230045,"date":"2021-07-19T16:24:38","date_gmt":"2021-07-19T08:24:38","guid":{"rendered":"https:\/\/magicalbits.net\/?p=230045"},"modified":"2021-07-19T16:24:38","modified_gmt":"2021-07-19T08:24:38","slug":"towards-inserting-one-billion-rows-in-sqlite-under-a-minute","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=230045","title":{"rendered":"Towards Inserting One Billion Rows in SQLite Under A Minute"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/ifttt.com\/images\/no_image_card.png\"><\/p>\n<p>Current Best: 100M rows inserts in 33 seconds. (you can check the source code on Github) Recently, I ran into a situation where I needed a test database with lots of rows and needed it fast. So I did what any programmer would do: wrote a Python script to generate the DB. Unfortunately, it was slow.<\/p>\n<p><a href=\"https:\/\/avi.im\/blag\/2021\/fast-sqlite-inserts\/\">Read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Current Best: 100M rows inserts in 33 seconds. (you can check the source code on Github) Recently, I ran into a situation where I needed a test database with lots of rows and needed it fast. So I did what any programmer would do: wrote a Python script to generate the DB. Unfortunately, it was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[54],"class_list":["post-230045","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-pocket"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230045"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230045\/revisions"}],"predecessor-version":[{"id":230046,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230045\/revisions\/230046"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}