indexWait

ReQL command: indexWait

Command syntax

table.indexWait([, index...]) → array

Description

Wait for the specified indexes on this table to be ready, or for all indexes on this table to be ready if no indexes are specified.

The result is an array containing one object for each table index:

{
    index: <indexName>,
    ready: true,
    function: <binary>,
    multi: <bool>,
    geo: <bool>,
    outdated: <bool>
}

See the indexStatus documentation for a description of the field values.

Example: Wait for all indexes on the table test to be ready:

r.table('test').indexWait().run(conn, callback)

Example: Wait for the index timestamp to be ready:

r.table('test').indexWait('timestamp').run(conn, callback)

Related commands

Get more help

Couldn't find what you were looking for?

© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/javascript/index_wait/

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部