I wanted to know when you are done processing some query or transaction do you usually close a connection only? do you close the pool? or do you close both? Does it even matter which one you close? What happens under the hood when you do all three of these cases (if there even is a difference). I’d appreciate it since I’ve been looking at the mariadb documentation and I see there are methods for closing both a pool and a connection and usually you instantiate opening one connection in the pool as far as I know and you need to close it when you are done using it.
I’d appreciate the guidance! Thank You!