3 ms·
Yes. But SQLite 3 is Public Domain, and I expect you could reimplement it in the browser if you really wanted to.
by TazeTSchnitzel 14y ago
Yes. But SQLite 3 is Public Domain, and I expect you could reimplement it in the browser if you really wanted to.
- MatthewPhillips 14y agoBut the parent's point stands; IndexedDB is just a set of APIs. A browser vendor can implement it on the backend any way they want. Chrome uses LevelDB and Firefox uses SQLite. When WebSQL they were stuck with improving SQLite.
- ef4 14y agoUnfortunately they chose a set of APIs that is strictly weaker than what we have access to via WebSql. When I port from WebSql to IndexDb, I will need to implement in Javascript a bunch of things that sqlite3 is already doing for me in C. I actually started out with a very NoSQL-like architecture on top of WebSql that's closer to the IndexDb model. But when I started taking more advantage of sqlite3 to do the heavy lifting (joins, nested subqueries, etc) I got an order of magnitude better performance. Switching to IndexDb means going back to the slow way.