mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-08 23:42:02 +00:00
103 lines
4.8 KiB
Plaintext
103 lines
4.8 KiB
Plaintext
flat
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_flat ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) SETTINGS function_sleep_max_microseconds_per_block = 10000000 FORMAT Null;
|
|
SELECT key, value FROM dict_flat ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(20) SETTINGS function_sleep_max_microseconds_per_block = 20000000 FORMAT Null;
|
|
SELECT key, value FROM dict_flat ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
flat/custom
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_flat_custom ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) SETTINGS function_sleep_max_microseconds_per_block = 10000000 FORMAT Null;
|
|
SELECT key, value FROM dict_flat_custom ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(20) SETTINGS function_sleep_max_microseconds_per_block = 20000000 FORMAT Null;
|
|
SELECT key, value FROM dict_flat_custom ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
hashed
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_hashed ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) SETTINGS function_sleep_max_microseconds_per_block = 10000000 FORMAT Null;
|
|
SELECT key, value FROM dict_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(20) SETTINGS function_sleep_max_microseconds_per_block = 20000000 FORMAT Null;
|
|
SELECT key, value FROM dict_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
hashed/custom
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) SETTINGS function_sleep_max_microseconds_per_block = 10000000 FORMAT Null;
|
|
SELECT key, value FROM dict_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(20) SETTINGS function_sleep_max_microseconds_per_block = 20000000 FORMAT Null;
|
|
SELECT key, value FROM dict_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
complex_key_hashed
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_complex_key_hashed ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) SETTINGS function_sleep_max_microseconds_per_block = 10000000 FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(20) SETTINGS function_sleep_max_microseconds_per_block = 20000000 FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|
|
complex_key_hashed/custom
|
|
-- { echoOn }
|
|
INSERT INTO table_for_update_field_dictionary VALUES (1, 'First', now());
|
|
SELECT key, value FROM dict_complex_key_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'Second', now());
|
|
SELECT sleepEachRow(1) FROM numbers(10) SETTINGS function_sleep_max_microseconds_per_block = 10000000 FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 Second
|
|
INSERT INTO table_for_update_field_dictionary VALUES (2, 'SecondUpdated', now());
|
|
INSERT INTO table_for_update_field_dictionary VALUES (3, 'Third', now());
|
|
SELECT sleepEachRow(1) FROM numbers(20) SETTINGS function_sleep_max_microseconds_per_block = 20000000 FORMAT Null;
|
|
SELECT key, value FROM dict_complex_key_hashed_custom ORDER BY key ASC;
|
|
1 First
|
|
2 SecondUpdated
|
|
3 Third
|