Performance: Database setup for production
HIGH IMPACT
This affects the initial page load speed and ongoing data retrieval performance by how the database is configured and connected in production.
production: adapter: postgresql encoding: unicode pool: 5 database: myapp_production username: myapp_user password: <%= ENV['MYAPP_DATABASE_PASSWORD'] %>
development: adapter: sqlite3 database: db/development.sqlite3 production: adapter: sqlite3 database: db/production.sqlite3
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| SQLite in production | N/A | N/A | High server response delay | [X] Bad |
| PostgreSQL with pooling | N/A | N/A | Low server response delay | [OK] Good |