perftools / xhgui

Web interface for XHProf profiling data can store data in MongoDB or PDO database
1.65k stars 343 forks source link

Tests: Use ocramius/lazy-property to delay db connections #387

Closed glensc closed 3 years ago

glensc commented 3 years ago

Using lazy init, can delay database connection when needed. This prevents DB connection be made in setUp() even if the test is to be skipped. Minimizes creating of connections, that are maybe even not needed.

AS there have appeared weird postgresql errors: