I am writing a game server that requires connecting to a MySQL database server to retrieve information about players or certain items in the game (the latter is only taken at server start). Should I have one connection to the database constantly open, and then check it for having failed / broken before use, or make a single connection for every request.
The current system (new connection for every player join), is adding noticeable latency to the login process.
Is it possible to have an always open MySQL connection in Java?