'Can use of many flutter hive box lead to low performace?

I am trying to make a money management app in flutter using hive. So I need to save data of each day in a box. If I use one hive box for one day there will be many hive boxes day after day. I need to know is there any simple way of doing this or creating many boxes in hive may lead to low performance. Thank you!



Solution 1:[1]

This is not answer to current situation, but. You can use SQL (like sqflite) or NoSQL (like hive) solutions. If you need implement a search in your app and one entity can relate to other entity, I can recommend to use SQL solution (because it simple when we are talking about search, queries, pagination and entity relations).

For dates you can create a field in your entity that store a date when this entity was created (payment for example). Your entity can look like:

class Payment {
  final double value;
  final DateTime date;
}

Then, you can fetch entities for needed day from a query and show it to user.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fartem