3 ms·
Great thinking from the RethinkDB side. One answer I couldn't find on their website is about the offline and optimistic update. It's really tricky to get right.
by d0m 10y ago
Great thinking from the RethinkDB side. One answer I couldn't find on their website is about the offline and optimistic update. It's really tricky to get right. Having a feed of changes is just a small part of having a robust solution.
- coffeemug 10y agoTake a look at this comment: https://news.ycombinator.com/item?id=11716145 https://news.ycombinator.com/item?id=11716145. TL;DR: currently not optimistic but will be soon; it's fairly simple to do because RethinkDB core has built in support for it. Once the feature lands in Horizon we'll talk about the implementation in detail.
- habitue 10y agoThis is on our list : https://github.com/rethinkdb/horizon/issues/23 https://github.com/rethinkdb/horizon/issues/23 The big piece remaining that will help is write timestamps in the database, which we're going to try to land in RethinkDB 2.4. If we were controlling a traditional MVC frontend model and had control over the objects themselves, it would be easier to do optimistic updates. Since we're aiming to be compatible with a lot of frontend frameworks where immutability of the model is important, we have to carefully consider how to do it. That being said, it's super important, so it's near the top of our priorities