3 ms·
Really cool, instead of polling for changes, RethinkDB will push. The best part, you simply add .changes() to your query and it just magically works. Curious th
by nodesocket 12y ago
Really cool, instead of polling for changes, RethinkDB will push. The best part, you simply add .changes() to your query and it just magically works. Curious though how the clients work? Do they just block waiting for data?
- timmaxw 12y agoThe Ruby and Python clients will block if you try to fetch the next change and there isn't one available. You can prevent this by using a separate thread for the blocking request. The node.js client uses a callback. We're currently considering alternatives. See <https://github.com/rethinkdb/rethinkdb/issues/3298> https://github.com/rethinkdb/rethinkdb/issues/3298>.
- nodesocket 12y agoAnd any support planned for the red-headed stepchild php?
- danielmewes 12y agoHave you tried http://php-rql.dnsalias.net/ http://php-rql.dnsalias.net/ ? It's pretty much equivalent to the official drivers, and well maintained (usually gets updated within a week after new RethinkDB releases).
- coffeemug 12y agoSpeaker here. As a redhead myself, I approve this message! :)