(device_id, time) can lead to significant performance improvement for
these types of queries.
One can call this function directly on individual s of a , but
using add_reorder_policy is often much more convenient.
reorder_chunk()
Reorder rows in a chunk
Since 1.2.0
Reorder a single ‘s heap to follow the order of an index. This function
acts similarly to the PostgreSQL CLUSTER command , however
it uses lower lock levels so that, unlike with the CLUSTER command, the
and are able to be read for most of the process. It does use a bit
more disk space during the operation.
This command can be particularly useful when data is often queried in an order
different from that in which it was originally inserted. For example, data is
commonly inserted into a in loose time order (for example, many devices
concurrently sending their current state), but one might typically query the
about a specific device. In such cases, reordering a using an
index on