Upgrade to 321 will trigger a function that will create all location slug according to your subdomain setting. So if you are on shared hosting with low memory, you are using location subdomain, and you have alot of location. You must do this carefully.
I think, to savely upgrade on low resource, you can set subdomain to "no subdomain", upgrade, then edit your location one by one, then set subdomain back.
Regards