mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-28 09:46:44 +08:00
New cluster-like command which writes to a new index than swaps, much like is done for the data table, and only acquires exclusive locks for said swap. This trades off disk usage for lower contention: we hold locks for a much lower period of time, allowing reads to work concurrently, but we have both the old and new versions of the table existing at once, approximately doubling storage usage while reorder is running. Currently only works on chunks.
10 lines
363 B
SQL
10 lines
363 B
SQL
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved.
|
|
--
|
|
-- This file is licensed under the Apache License,
|
|
-- see LICENSE-APACHE at the top level directory.
|
|
|
|
SET timescaledb.disable_optimizations= 'on';
|
|
SET max_parallel_workers_per_gather = 0; -- Disable parallel for this test
|
|
\ir include/sql_query_results.sql
|
|
RESET max_parallel_workers_per_gather;
|