Chris Basham
Chris Basham
Yes, extending WriteEvent and sending a new event at the end of `saveToLocalStorage()` would work. While it wouldn't be a breaking change, it may make the subscription noisier for some...
I haven't tested it (because I'm using the IndexedDB driver), but I'm guessing this issue is no longer relevant, now that Earthstar v7 is out. Perhaps it can be closed?
I like the simplicity of this approach. Here are some additional considerations: 1. How does this scale? If replica A sends the paths, authors, and timestamps of every document to...
I've been researching this week, and I found the talk [*CRDTs for Mortals (Offline First Apps)*](https://www.youtube.com/watch?v=iEFcmfmdh2w). It gives a good overview of the problems with conflict resolution and syncing. The...
That's a fascinating proposal. This is how I'm interpreting it: Searching based on a range means there has to be some agreed upon way to sort items within that range....
Ignore this comment, if I'm not following all the intricacies of what's being proposed here. But I suspect the timestamp may need to be included. Since the three parts can't...
Maybe part of the misunderstanding comes from the value of the author. My interpretation of "author" for the sake of this conversation would be more accurately [Earthstar Identities](https://earthstar-project.org/get-started/how-it-works#-identities). > A...
Yep, that makes sense. Thanks!
Update: I was able to optimize my code. Now, the 8 seconds of loading is down to 100ms. The slowdown happened because when I called `queryDocs()`, I extracted only the...
These optimizations should also improve saving documents into the replica. Within `Replica.set()`, there is a call for [`getLatestDocAtPath()`](https://github.com/earthstar-project/earthstar/blob/v9.3.2/src/replica/replica.ts#L283) and [`getAllDocsAtPath()`](https://github.com/earthstar-project/earthstar/blob/v9.3.2/src/replica/replica.ts#L380). Both of those should return at constant time, but the...