How we sped up Notion in the browser with WASM SQLite
11–20 of 107 posts
Re: How we sped up Notion in the browser with WASM SQLite
#12Earlier quoted context omitted.
They already did that. It was called WebSQL. It was removed I think in favor of IndexedDB.
[..] Web SQL Database was a prior API developed by Apple.[12] But Firefox refused to add support for it and argued against it becoming a standard because it would codify the quirks of SQLite.[13][14] It was thus deprecated in favor of IndexedDB.[..] Mozilla again.. The real joke is, Firefox is now the only(?) browser using sqlite out-of-the-box for internal databases.
Re: How we sped up Notion in the browser with WASM SQLite
#13Overall I think using SQLite locally to offload database work is incredibly powerful. Given most laptops have an SSD now a days, you can scan an entire 30-100MiB SQLite db in miliseconds. Meanwhile in AWS you would pay $27k a month to have the same IOPS as a Lenovo Thinkpad X1. I just got done with a side project using WASM SQLite as well, it's incredibly powerful, even supports full text search. My project "cluttr"…
Re: How we sped up Notion in the browser with WASM SQLite
#14Overall I think using SQLite locally to offload database work is incredibly powerful. Given most laptops have an SSD now a days, you can scan an entire 30-100MiB SQLite db in miliseconds. Meanwhile in AWS you would pay $27k a month to have the same IOPS as a Lenovo Thinkpad X1. I just got done with a side project using WASM SQLite as well, it's incredibly powerful, even supports full text search. My project "cluttr"…
Curious about how this number was arrived at and what products were involved
Re: How we sped up Notion in the browser with WASM SQLite
#15Re: How we sped up Notion in the browser with WASM SQLite
#16SQLite has become the defacto local single file database standard.
It has a very permissive license.
It has support contracts out to the 2050s (service lifetime of Airbus A350 airframe).
SQLite will probably have a longer lifetime than whatever browser standard we have now.
Re: How we sped up Notion in the browser with WASM SQLite
#17Re: How we sped up Notion in the browser with WASM SQLite
#18Overall I think using SQLite locally to offload database work is incredibly powerful. Given most laptops have an SSD now a days, you can scan an entire 30-100MiB SQLite db in miliseconds. Meanwhile in AWS you would pay $27k a month to have the same IOPS as a Lenovo Thinkpad X1. I just got done with a side project using WASM SQLite as well, it's incredibly powerful, even supports full text search. My project "cluttr"…
If you think those read speeds are great, try DuckDB (which has many SIMD improvements) if you want to blow your socks off.
Re: How we sped up Notion in the browser with WASM SQLite
#19Earlier quoted context omitted.
[..] Web SQL Database was a prior API developed by Apple.[12] But Firefox refused to add support for it and argued against it becoming a standard because it would codify the quirks of SQLite.[13][14] It was thus deprecated in favor of IndexedDB.[..] Mozilla again.. The real joke is, Firefox is now the only(?) browser using sqlite out-of-the-box for internal databases.
nope, chromium too. look in your cookies file