W3cubDocs

/RethinkDB Python

ReQL command: index_wait

Command syntax

table.index_wait([, 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": <index_name>,
    "ready": True,
    "function": <binary>,
    "multi": <bool>,
    "geo": <bool>,
    "outdated": <bool>
}

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

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

r.table('test').index_wait().run(conn)

Example: Wait for the index timestamp to be ready:

r.table('test').index_wait('timestamp').run(conn)

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/python/index_wait/