Frequently Asked Questions

A random collection of frequently asked questions about Isar and Flutter databases.

Why do I need a database?

I store my data in a backend database, why do I need Isar?.

Even today, it is very common to have no data connection, if you are in a subway or a plane, or if you visit your grandma who has no WiFi and very bad cell signal. You shouldn't let bad connection cripple your app!

Isar vs Hive

The answer to this one is easy: Isar was started as a replacement for Hiveopen in new window and is now at a state where I recommend to always use Isar over Hive.

Where clauses?!

Why do I have to choose which index to use?

There are multiple reasons. Many databases use heuristics to choose the best index for a given query. The database needs to collect additional usage data (-> overhead) and might still choose the wrong index. It also makes creating a query slower.

Nobody knows your data better than you, the developer. So you can choose the optimal index and decide for example whether you want to use an index for querying or sorting.

Do I have to use indexes / where clauses?

Nope! Isar is most likely fast enough if you only rely on filters.

Does Isar increase the size of my app?

A little bit, yes. Isar will increase the download size of your app by about 1 - 1.5 MB. Isar Web adds only a few KB.

The docs are incorrect / there is a typo.

Oh no, sorry. Please open an issueopen in new window or even better a PR to fix it 💪.