Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
https://github.com/ente-io/edge-db-benchmarks/blob/43273607d...
If this is how you are doing reads, this is your problem. Limit/offset reads are slow.
You'll get much better results if you do a proper pagination implementation.
This article describes the problem and solution that'd give you much better read results.
https://use-the-index-luke.com/sql/partial-results/fetch-nex...
I would have appreciated some more details on the benchmark. SQLite has notoriously slow writes in the default journal mode, but proper configuration and WAL/WAL2 mode should be a starting point for any comparison.
It's the first time I've heard of Isar[1] though. I'm always surprised at how many solid-but-underused Apache projects are out there, chugging along.
[0] https://phiresky.github.io/blog/2020/sqlite-performance-tuni...
[1] https://isar.dev/
So the problem is with dart library sqlite_async.dart [1] and not with sqlite itself.
Kind of a misleading title, TBH.
[1] https://github.com/powersync-ja/sqlite_async.dart
Reference to HN comment - https://news.ycombinator.com/item?id=39290411
Related posts
- Picking my poison for semi-structured data persistence in Flutter: Isar, ObjectBox, Realm, and Sqflite
- Flutter and databases
- All local database options for Flutter
- [My First App] that let's you quickly track any activity and see the progress/history.
- [First App} that let's you quickly track any activity and see the progress/history.