2023-10-24 10:45:11 +00:00
|
|
|
-- Tags: use-rocksdb
|
|
|
|
|
2023-10-19 04:03:08 +00:00
|
|
|
CREATE TABLE dict (key UInt64, value String) ENGINE = EmbeddedRocksDB PRIMARY KEY key;
|
|
|
|
INSERT INTO dict SELECT number, toString(number) FROM numbers(121);
|
2023-11-10 13:40:55 +00:00
|
|
|
-- { echoOn }
|
2023-10-24 03:18:33 +00:00
|
|
|
SELECT count() FROM dict SETTINGS optimize_trivial_approximate_count_query = 0, max_rows_to_read = 1; -- { serverError TOO_MANY_ROWS }
|
2023-11-10 13:40:55 +00:00
|
|
|
SELECT count() FROM dict SETTINGS max_rows_to_read = 1;
|
|
|
|
SELECT total_rows FROM system.tables WHERE database = currentDatabase() AND name = 'dict';
|