isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
3.97k stars 393 forks source link

how to go about searching and indexing? #583

Open GorvGoyl opened 3 years ago

GorvGoyl commented 3 years ago

Question We're using hivedb as localstorage for our chat based app similar to WhatsApp. It's a cross-platform flutter app (Android, iOS). We're storing messages in local hivedb and later syncing it with MongoDB in cloud. We have a requirement to perform instant search for chat messages. As these messages could grow substantially over a period of time I'm hoping to find some scalable solution for searching. I couldn't find any reference in your docs about efficient searching or indexing :(

Version

themisir commented 3 years ago

A bit late but I would go with SQLite3 or something similar that supports advanced indexing capabilities instead of Hive to solve this problem.

simc commented 3 years ago

Isar supports indexes, composite indexes and advanced queries :) Hive is better for stuff like caches, config, unstructured data etc.