marioreggiori / objectdb

Persistent embedded document-oriented NoSQL database for Dart and Flutter.
https://pub.dev/packages/objectdb
MIT License
190 stars 21 forks source link

[Question] Have you ever perfomed DB operations in an isolate? #61

Open jonny7737 opened 3 years ago

jonny7737 commented 3 years ago

Title says it all. I am trying to get a count of the number of items in the DB using db.find(). find() never returns when executed in the isolate. Can you think of a reason this would not work?

db.hashCode works as expected in the isolate.

By isolate I mean a secondary isolate outside the main isolate.

Thanks, Jonny

jonny7737 commented 3 years ago

no response

srix55 commented 3 years ago

I'm interested in this too. I would like the read operations on heavier tables performed within a non-ui isolate. Also, I would like to know what's a realistic number of records objectdb can perform well with before it becomes too much to handle.