objectbox / objectbox-dart

Flutter database for super-fast Dart object persistence
https://docs.objectbox.io/getting-started
Apache License 2.0
927 stars 115 forks source link

[docs] question about hive deprecation in your docs #244

Closed iapicca closed 2 years ago

iapicca commented 2 years ago

this article claims hive being deprecated but I cannot find any reference that validates that statement, can you provide the source of this information? thank you image

cc @leisim

vaind commented 2 years ago

Basically this - hive is being replaced by another project

https://github.com/hivedb/hive/issues/246
TLDR: Hive 2.0 will be rewritten in Rust to get amazing performance, multithreaded queries, read and write transactions, and super low memory usage. I have thought a long time how to correctly implement queries in Hive and I have come to the conclusion that it is not possible with the current architecture. I have reviewed many projects on GitHub which use Hive and most of them have to create their own suboptimal workaround for queries. Apart from queries, Hive has another problem: Dart objects use much RAM. Since Hive currently keeps at least the keys in RAM, you can hit the OS limit of mobile devices quite fast.

iapicca commented 2 years ago

Basically this - hive is being replaced by another project

hivedb/hive#246 TLDR: Hive 2.0 will be rewritten in Rust to get amazing performance, multithreaded queries, read and write transactions, and super low memory usage. I have thought a long time how to correctly implement queries in Hive and I have come to the conclusion that it is not possible with the current architecture. I have reviewed many projects on GitHub which use Hive and most of them have to create their own suboptimal workaround for queries. Apart from queries, Hive has another problem: Dart objects use much RAM. Since Hive currently keeps at least the keys in RAM, you can hit the OS limit of mobile devices quite fast.

@vaind seems quite a stretch to paraphrase the post as the package has been deprecated, for 4 reasons:

#

opinion: since you consider isar being a replacement for hive it would be just fair include the it in the benchmark

greenrobot commented 2 years ago

@iapicca Yes, you are right and we're going to make adjustments to the article. Our assessment of the situation goes back when we published our first benchmark back in February when the last real release was August 2020...

lil5 commented 2 years ago

@greenrobot nothing has happened to the article since May.

greenrobot commented 2 years ago

nothing has happened to the article since May.

@lil5 This is wrong. The article has been updated to the situation back in May and does not say it's deprecated. Let us know in more detail if you see the necessity for further clarifications.

lil5 commented 2 years ago

image

@greenrobot Look again

This link still includes the graphic stating the false "deprecated"

https://objectbox.io/flutter-databases-sqflite-hive-objectbox-and-moor/

greenrobot commented 2 years ago

That's a completely different URL... OK, I'll ping someone to fix it. Thanks for spotting this.

iapicca commented 2 years ago

@lil5 I think @greenrobot and objectbox's team in general have shown that was an honest mistake and was addressed instantly I have no doubt that their heart is the right place (plus the add competition to the dart scene and that makes me happy)

ivahnenkoAnna commented 2 years ago

You can now see the new chart in the article.

greenrobot-team commented 2 years ago

I guess this can be closed then.