Stata `set maxvar` migration: balancing variable limits against memory overhead during zero-downtime upgrade
Migrating a small Stata application to a newer release without downtime requires deciding how aggressively to raise the maxvar limit. The setting is session‑specific and resets on restart unless written to a startup file, so any change must be applied consistently across all worker processes. Raising the limit too high allocates unnecessary memory and can ca