Performance: Database configuration
MEDIUM IMPACT
This affects the initial page load speed and backend response time by controlling how the application connects and queries the database.
Use Laravel's built-in connection pooling and caching with config/database.php and .env settingsDB::connection()->getPdo(); // called repeatedly without connection pooling or caching| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Repeated new DB connections per request | N/A | N/A | N/A | [X] Bad |
| Persistent DB connections with config caching | N/A | N/A | N/A | [OK] Good |