long1eu / firebase_dart_sdk

Unofficial Firebase Flutter SDK. Maintainer: @long1eu
https://firebase.google.com
82 stars 21 forks source link

Use Embedded NoSQL instead of SQLite for Persistence #8

Open rizalkotlin opened 5 years ago

rizalkotlin commented 5 years ago

We already have persistent embedded document-oriented NoSQL database for Dart which support multi platform like objectdb or sembast. Using SQLite gives us downsize, too many implementation for every platform. On mobile we can use sqflite, on dart vm we use dart-sqlite, but on Flutter Desktop we can't use both of them, dart-sqlite can't be used since Flutter doesn't support reflection/mirror

long1eu commented 5 years ago

My suggestion is to build a platform plugin for desktop. You only need a few methods.

rodydavis commented 5 years ago

you can use SQLite with FFI support on desktop right?

long1eu commented 5 years ago

Awesome idea. I was thinking about this also.

rodydavis commented 5 years ago

flutter_moor does this on the experimental branch!

talamaska commented 5 years ago

Dart:ffi is far from ready. From their readme there are significant limitations when using it, like only for x64 or working only in Jit compiling, but that's not how flutter work. It looks like sembast is plausible solution when working in desktop, but still it will have performance degradation when working with large data set. I was hoping for mongodb embedable release for flutter, but still no news there.

iapicca commented 3 years ago

since nobody mentioned hive I will