-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Description
Hive has an issue with high RAM usage, no support for queries and less than desirable performance for complex data [1], which in my opinion fits the purpose of hydrated_bloc. Recently a complementing library to solve these issues from the same author (@leisim) got released into stable, and it's called Isar [2]. For now, it comes with two primary downsides: it is still quite young, the web support is to (soon™).
Desired Solution
Hive is replaced with Isar as the main means of dealing with cached storage within hydrated_bloc.
Alternatives Considered
Hive alternative Objectbox [3] is not written in Rust (unlike Isar), thus any memory, undefined behaviour and concurrency related bugs will be present in higher amounts and will be harder to spot even for experts since it's inherently harder to setup for safe reliable code. However, it comes with a variety of interfaces to other languages, e.g. Kotlin and Swift.
Additional Context
[1] isar/hive#246
[2] https://github.com/isar/isar
[3] https://github.com/objectbox/objectbox-dart