v.18.16Improvement

Improved dictGet...OrDefault Function Performance

Improved performance of the dictGet...OrDefault function for a constant key argument and a non-constant default argument. Amos Bird
Improved performance of the dictGet...OrDefault function when used with a constant key argument and a non-constant default argument.

Why it matters

This enhancement addresses inefficiencies in the dictGet...OrDefault function by optimizing its execution path for cases where the key is constant but the default value is dynamic. This reduces computation overhead and improves query performance for users leveraging dictionaries with default fallback values.

How to use it

To benefit from this improvement, use the dictGet...OrDefault function in your queries as usual with a constant key parameter and a non-constant default argument. No additional configuration or changes are required.