deepstreamIO / deepstream.io-provider-search-rethinkdb

A data-provider that makes every table searchable via rethinkdb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resolve search results race condition

Iiridayn opened this issue · comments

When querying for initial results to a search condition, processing the results, then subscribing to changes, there is a small gap during which a change can slip in undetected. Fortunately, rethinkdb offers a convenient method to subscribe to both the changes and the initial dataset at the same time. We should use it since they've made it so simple to use.

Code will be supplied, per usual.