v.22.2Improvement
Fixes issues with parallel view processing and view duration for materialized views in ClickHouse
Fixesparallel_view_processing = 0not working when inserting into a table usingVALUES. - Fixesview_duration_msin thequery_views_lognot being set correctly for materialized views. #34067 (Raúl Marín).
Why it matters
This update resolves two problems: first, it ensures that theparallel_view_processing setting is properly respected (disabled) during INSERT ... VALUES operations; second, it fixes the incorrect recording of materialized view execution time in the view_duration_ms field within the query_views_log. These fixes improve query logging accuracy and control over view processing behavior.How to use it
Users should setparallel_view_processing = 0 in their session or server settings to disable parallel processing of views during INSERT ... VALUES queries. The view_duration_ms field in query_views_log will now automatically reflect correct timing for materialized views without additional configuration.