8 ms·
(Former Meteor core dev here) This is cool! Does Horizon also solve "optimistic updates"? If so I'd love to learn more details. For comparison, Meteor keeps a
by avital 10y ago
(Former Meteor core dev here) This is cool!
Does Horizon also solve "optimistic updates"? If so I'd love to learn more details. For comparison, Meteor keeps a local datastore that updates immediately when data is mutated and then reconciled with the real database.
- coffeemug 10y agoThe current version of Horizon doesn't do optimistic updates, but it's on the roadmap. Check out https://github.com/rethinkdb/horizon/issues/23 https://github.com/rethinkdb/horizon/issues/23. This is relatively easy because RethinkDB itself has support for notifying the client via a feed when a particular update has landed (i.e. the RethinkDB client can correlate the write with a feed message). It just didn't make it into v1, but will happen soon.
- Liron 10y agoSee also my issue about implementing the equivalent of Meteor's write fence: https://github.com/rethinkdb/horizon/issues/344 https://github.com/rethinkdb/horizon/issues/344