Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 54 forks source link

Support for isolate #165

Open jaumard opened 4 years ago

jaumard commented 4 years ago

Problem is that if you have a huge load of data, for example a synchronization for offline usage to do with your backend, doing the work on the main isolate can provoke lags in the app.

What would be nice is to have the request done in an isolate. What I can think of right now is to wrap sqflite into his own isolate and doing a jaguar adapter that use this isolate.

Not sure yet this will work but might be worth some testing !

Maybe @tejainece will have some additional ideas :)