1000
0
1
CREATE TABLE dynamic_squash_performance_1
(
d Dynamic
)
ENGINE = Null;
CREATE TABLE dynamic_squash_performance_2
(
d Dynamic(max_types=6)
)
ENGINE = Null;
CREATE TABLE src_dynamic_squash_performance_1
(
d Dynamic
)
ENGINE = Memory;
CREATE TABLE src_dynamic_squash_performance_2
(
d Dynamic(max_types=6)
)
ENGINE = Memory;
INSERT INTO dynamic_squash_performance_1 SELECT number::Dynamic FROM numbers(10000000)
INSERT INTO dynamic_squash_performance_1 SELECT range(number % 100)::Dynamic FROM numbers(2000000)
INSERT INTO dynamic_squash_performance_1 SELECT * FROM src_dynamic_squash_performance_1
INSERT INTO dynamic_squash_performance_2 SELECT * FROM src_dynamic_squash_performance_2
DROP TABLE IF EXISTS dynamic_squash_performance_1
DROP TABLE IF EXISTS dynamic_squash_performance_2
DROP TABLE IF EXISTS src_dynamic_squash_performance_1
DROP TABLE IF EXISTS src_dynamic_squash_performance_2