Many queries with one mega function or many functions?

Using an elastic client for doing different queries -
is it better to run them all through the same mega-function that does all possible processing, like applying filters (sometimes those values are empty so only part of the processing steps are taken) and queries against ES, or make a separate query function for each query or group of queries?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.