Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
iapicca opened this issue May 18, 2021 · 10 comments
Closed

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

iapicca opened this issue May 18, 2021 · 10 comments
Labels
question How to do something/general question

Comments

@iapicca
Copy link

iapicca commented May 18, 2021

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

@iapicca iapicca added the bug Something isn't working label May 18, 2021
@vaind vaind added question How to do something/general question and removed bug Something isn't working labels May 18, 2021
@vaind
Copy link
Contributor

vaind commented May 18, 2021

Basically this - hive is being replaced by another project

isar/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.

@iapicca
Copy link
Author

iapicca commented May 18, 2021

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:

  • the post does not mention the package being deprecated

  • the same post states later Hive and Isar are so different that it is a good idea to keep both around.

  • the post is more than an year old and 9 versions including 1 major release subsequent to that date

  • hive readme states

If you need queries, multi-isolate support or links between objects check out Isar Database.

seem to present isar as a different product rather than a direct replacement,
with substantial differences, for example isar (or objectbox for the matter) does not supports web

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

@greenrobot
Copy link
Member

@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
Copy link

lil5 commented Oct 1, 2021

@greenrobot nothing has happened to the article since May.

@greenrobot
Copy link
Member

greenrobot commented Oct 1, 2021

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
Copy link

lil5 commented Oct 3, 2021

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
Copy link
Member

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

@iapicca
Copy link
Author

iapicca commented Oct 4, 2021

@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
Copy link
Contributor

You can now see the new chart in the article.

@greenrobot-team
Copy link
Member

I guess this can be closed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question How to do something/general question
Projects
None yet
Development

No branches or pull requests

6 participants