Hacker News new | ask | show | jobs
by jzila 4172 days ago
In the video he calls changes() on a query that has an orderBy and limit filter. In the description for Changefeeds (http://rethinkdb.com/docs/changefeeds/javascript/), it says this is not possible. Is this new functionality? If so, that's pretty great. Using the diff format makes that pretty intuitive (even if the client will be slightly harder to implement).
1 comments

Yes, this is new functionality that will be released as part of RethinkDB 1.16. RethinkDB 1.16 is expected to ship in a couple of weeks.
How do you handle disconnects and missed messages? What's required to make this a robust sync solution, including syncing the first query and then changes, akin to Firebase? Are there plans to support direct access from web clients and optimistic writes on the client?
Right now you have to start over if your changefeed gets disconnected. But we're discussing better options; see <https://github.com/rethinkdb/rethinkdb/issues/3471>.

We don't have any plans to support direct access from web clients. The main problem is security. RethinkDB doesn't have any notion of users or access privileges, so any client can e.g. drop a table. We might add this eventually, but it's low on the priority list. See <https://github.com/rethinkdb/rethinkdb/issues/266> for more discussion.