Skip to content

Commit 3aacc6d

Browse files
authored
Enhance executable dictionary documentation
Added information about the executable pool setting to improve resource management for high frequency refresh times.
1 parent 3f54786 commit 3aacc6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/en/altinity-kb-setup-and-maintenance/executable-dictionary.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,10 @@ if [[ $current_day -eq 6 && $current_time -ge 1000 && $current_time -lt 1100 ]];
8585
fi
8686
fi
8787
```
88+
89+
### Improvements
90+
91+
If the dictionary has a high frecuency refresh time, then clickhouse could end up executing that script multiple times using a lot of resources and creating processes that can look like 'stuck' ones.
92+
To overcome this we can use the executable pool setting: https://clickhouse.com/docs/sql-reference/dictionaries#executable-pool
93+
94+
Executable pool will spawn a pool of processes (similar as a pool of connections) with the specified command and keep them running until they exit, which is useful for heavy scripts/python and reduces the initialization impact of those on clickhouse.

0 commit comments

Comments
 (0)