In which ways has the transition from foraging to farming been beneficial for humanity? in which ways has the transition from foraging to farming been detrimental for humans?

In which ways has the transition from foraging to farming been beneficial for humanity? in which ways has the transition from foraging to farming been detrimental for humans?