Noticed that you entered moodle.org just now. So there's much to catch up. Here are the starting pointers:
- https://docs.moodle.org/en/Performance_recommendations
- https://docs.moodle.org/en/Performance_FAQ
- https://moodle.org/mod/forum/search.php?id=5