Moshe Dicker

Results 208 comments of Moshe Dicker

How often is this getting triggered? do this: ``` final stream = getMessagesWithRoomMemberByRoomId2(...) stream.listen((_){ print(DateTime.now().millisecondsSinceEpoch); }); // Use the stream ``` How often are you seeing a read?

Yes, but either this stream is triggered by other opperations too often, or the stream is being recreated on every build please try this and report back > How often...

`distinct` would makes the stream not update if nothing has actually changed. >hi, i logged the stream, it prints expected every time messages updates (sending or erceiveing) How often is...

`deletedAt` sounds like a really smart idea, but It's out of scope for an ORM, which Drift aims to be. Even the Django ORM, which borders on being a "Data...

The code works as is, but it's not clean at all. I'm gonna take one or two days off this so that I can take a fresh look at it....

@simolus3 Still needs docs and tests, but otherwise is complete. When I have time I'll write up a much clearer explanation of what going on. Sometime tomorrow

🚧**WIP**🚧 This is how prefetching will work under the hood ### Step 1 - The Callback The user decides what he would like prefetch by using an optional call back...

Any functionality that we want to work on child managers needs to be put into the TableManagerState. Otherwise ```dart db.manager.users.withReferences(...) // Works db.manager.users.filter(...).withReferences(...) // Does not work ``` What does...

@simolus3 On second thought is does really look strange. I'm working on adding support for joins now. After that, I'll do what I've described above.

After more thought, the idea of a tables with a cache presents too many foot guns to users. 1. If you apply filters to manager with a cache, the cache...