diff --git a/dbms/src/Dictionaries/PolygonDictionaryImplementations.h b/dbms/src/Dictionaries/PolygonDictionaryImplementations.h index 5f6df4d33d1..0f328a6fe3a 100644 --- a/dbms/src/Dictionaries/PolygonDictionaryImplementations.h +++ b/dbms/src/Dictionaries/PolygonDictionaryImplementations.h @@ -79,7 +79,7 @@ private: std::vector buckets; GridRoot grid; static constexpr size_t kMinIntersections = 1; - static constexpr size_t kMaxDepth = 10; + static constexpr size_t kMaxDepth = 7; }; } diff --git a/dbms/src/Dictionaries/PolygonDictionaryUtils.h b/dbms/src/Dictionaries/PolygonDictionaryUtils.h index 4107e02592d..92bba6edabd 100644 --- a/dbms/src/Dictionaries/PolygonDictionaryUtils.h +++ b/dbms/src/Dictionaries/PolygonDictionaryUtils.h @@ -70,8 +70,8 @@ public: [[nodiscard]] const FinalCell * find(Float64 x, Float64 y) const override; /** When a cell is split every side is split into kSplit pieces producing kSplit * kSplit equal smaller cells. */ - static constexpr size_t kSplit = 2; - static constexpr size_t kMultiProcessingDepth = 4; + static constexpr size_t kSplit = 4; + static constexpr size_t kMultiProcessingDepth = 2; private: std::unique_ptr root = nullptr;