Moshe Dicker
Moshe Dicker
@schultek Seems like a simple check here should suffice: https://github.com/schultek/dart_mappable/blob/4777e79cdc99e15730d18990e1d774edc0064b0a/packages/dart_mappable_builder/lib/src/generators/mixins/decoding_mixin.dart#L11-L17
Does it jank for a frame or 2, or does the app freeze. A stream which has no listeners doesn't issue events, try adding adding a listener to the stream...
If you are performing multiple mutations rapidly, use a transaction so that the query only reruns once all the actions are done
Nah, we’re gonna need more code. Could you post the code for the database class? Also, can you profile the app and upload the CPU flame chart On Tue, Aug...
SQLite itself can't do concurrent writes. It's not a limitation of drift. However the issue at hand is that the main thread is getting locked up. Drift tries to do...
Can you post your database class?
@lucasjinreal can you show me the `_openConnection()` function?
@lucasjinreal You cannot pass a `MyDatabase` instance between isolates. You can only pass the underlying connection. In your case you need to do the following: ```dart import 'dart:async'; import 'package:drift/drift.dart';...
> Also, want ask, if using `Isolate.run` to do sql insert, will that shareIsolates works? such as: > > ``` > Isolate.run(() { > DbMessage dbMessage; > dbMessage = event.toDbMessage();...
> Another could caused is selecting operation is time consuming, but am ready used limit, a very limited rows were selected each time. I still think the operation on qeury...