From 453450985f9b5452779b6b4a7ec6c0a44105e3dc Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 13 Feb 2021 00:26:25 +0300 Subject: [PATCH] Performance improvement by Nikolai Kochetov --- src/Storages/StorageMemory.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Storages/StorageMemory.h b/src/Storages/StorageMemory.h index 91cf616c57d..db71c13ca99 100644 --- a/src/Storages/StorageMemory.h +++ b/src/Storages/StorageMemory.h @@ -45,6 +45,8 @@ public: /// Smaller blocks (e.g. 64K rows) are better for CPU cache. bool prefersLargeBlocks() const override { return false; } + bool hasEvenlyDistributedRead() const override { return true; } + BlockOutputStreamPtr write(const ASTPtr & query, const StorageMetadataPtr & metadata_snapshot, const Context & context) override; void drop() override;