I was watching how my application behaves with Glimpse(web diagnostic tool), and could not explain why number of connections to db is much higher then actual queries. I look at particular ajax call to db, which loads 10 more Entities to view each time list is being scrolled to bottom.
13 Queries are because of lazy loading, but i can't explain why so much connections to db (92). When I tested it on more simple application, while eager loading, there was just one connection to db, and while lazy loading #connections was equal to #queries. What can cause this behavior and how does it impact performance?
Edit: I'm using mysql.