Hello and welcome to TFL stick130
The Glock 22 is an excellent handgun. You will undoubtedly be happy with it if you get one. As to the "investment" side - Glocks do not appreciate much in value - however they also generally do not loose a lot of value.
May I suggest getting the 3rd generation Glock vs the 4th generation - unless the changeable backstrap is important to you.