First of all, I assume you are all talking about the 9mm version as the spring weight on .40 version are not all the same.
The right recoil spring weight needs to go with the type of ammo you are using. The heavier loaded ammo would need stronger recoil springs vs weaker recoil spring for weaker ammo. For factory ammo they probably are all in the range a stock spring can take. However, if you reload your own ammo for competition for example, then you may use weak ammo with weak spring in order to have less recoil.
If you get an overly weak recoil spring, the muzzle rise will increase and excess wear to the frame from battering would also increase. If you use an overly strong recoil spring, the recoil resistance may be too much to allow the slide to move back to properly eject the fired case or allow the magazine to feed the next round and the slide may not lock at empty mag.
You can start by trying your heaviest recoil spring one shot at a time and go down in weight until the slide locks at empty mag. That should be the spring to use.
A main spring (hammer spring) also adds to the effect of a recoil spring - increase of weight increases resistance of slide recoil. However it also comes with resistance to trigger pull on a DA pistol.
If the spent casings are hitting the ground beyond 6-8 feet that means the slide moves back too forcefully, a stronger spring may be needed. If the casings are rejecting less than 3 feet, a weaker spring may be needed.
I have a .40 model and I haven?t found I need to change any stock springs so far for factory ammo.