danielmewes / php-rql

A PHP client driver for the RethinkDB query language (ReQL).
http://php-rql.dnsalias.net/
339 stars 60 forks source link

any info about changes() support? #129

Closed boynet closed 8 years ago

boynet commented 8 years ago

how this is working?

$feed = r\table('games')->changes()->run($conn);
foreach ($feed as $change) {
  print_r($change);
}

is it gonna keep the php script run forever?

danielmewes commented 8 years ago

@boynet Yes, currently the PHP driver is completely synchronous, so you can't have multiple operations at the same time.

If your version of PHP supports it, you can use multi-threading to open multiple RethinkDB connections and perform different tasks on each thread.