I guess a second reason NOT to pre-calculate is if the country code mapping changes - as it could easily do.
But it is a good reason to precalculate it!
Suppose you are a fact table, and a fact regarding some click (or anything else). You’re determining a country code for this fact, for the moment it occured.
But if in next two months country code mapping will change, it should not change the past. A country code for any existing facts should not change, only the future ones should be affected. And JOIN solution will work opposite…
Unfortunately I have no more ideas for optimizations. Except waiting some time for optimized version of ICE.
Regards,

