Very important to note that quantity is not the main aim but secondary to quality. Quality you can only have if the plant is happy. If the plant is happy then it will reward you with very potent weed.
By getting to know how to make the plants happy, not only you will have top quality but bigger quantity will be also be an outcome. By trial and error and keen observation you will learn what makes each strain happy. Not all strains respond well to LST for example, which means that you cannot aim to a high quantity from individual plants so you need to grow SOG and many plants. Or SOG is limiting a very bushy bad tall plant and SCROG might be the solution. But most of all you must give a plant the best possible conditions for its growth, in nutrients, water, climate and light.
Pests are in the game as well but a well fed, aerated, watered and illuminated plant can overcome most of them with no real effect on its yield.
Medium is not the factor that will determine success, but soil for example is more forgiving to mistakes. If you exploit the medium's advantages then you can overcome most issues. I have seen many organic grows in soil that dwarf most hydroponic grows in quantity and of course quality is beyond comparison. And that is with only water and organic nutrients.
The rule to follow is lots of light, lots of air, minimal water, minimal food, a steady tolerable temperature and progressively medium to low humidity. These are pretty basic steps that keeps things simple and productive.