
Performance & Optimization
Profiler, Blackfire, query optimization, lazy loading, eager loading, caching strategies
1What is the main purpose of the Symfony Profiler in the development cycle?
What is the main purpose of the Symfony Profiler in the development cycle?
Respuesta
The Symfony Profiler is a debugging tool that collects detailed information about each HTTP request: execution time, SQL queries, memory usage, cache, events and more. It helps identify bottlenecks and analyze application behavior without modifying code. Unlike traditional logs, it provides an interactive graphical interface accessible via the Web Debug Toolbar.
2How does Blackfire differ from Symfony Profiler for performance analysis?
How does Blackfire differ from Symfony Profiler for performance analysis?
Respuesta
Blackfire is a PHP application profiler that performs deep code analysis at the function-by-function level, with call graphs, profile comparisons and regression detection. Unlike Symfony Profiler which gives a per-request overview, Blackfire traces complete code execution with CPU, memory and I/O metrics at each function call. It also enables comparing performance between different code versions.
3What is the difference between lazy loading and eager loading in Doctrine ORM?
What is the difference between lazy loading and eager loading in Doctrine ORM?
Respuesta
Lazy loading loads relationships only when they are actually accessed in code, reducing initial load but potentially creating the N+1 problem with multiple additional queries. Eager loading loads relationships immediately with the main query via JOIN, avoiding extra queries but potentially increasing the amount of data transferred. The choice depends on how the data will be used.
How to identify and solve the N+1 queries problem with Doctrine?
What caching strategy to use for data that rarely changes but is read frequently?
+19 preguntas de entrevista
Otros temas de entrevista Symfony
Modern PHP (8.1+)
Symfony Basics
Routing & Controllers
Twig & Templates
Doctrine ORM Basics
Symfony Forms
Data Validation
Dependency Injection & Services
Security & Authentication
Doctrine Advanced
API Platform
Serializer Component
Events & Event Subscribers
Console & Commands
Messenger Component
HTTP Client
Cache & Performance
Workflow Component
Testing Symfony
Mailer Component
Translations & i18n
EasyAdmin Bundle
Symfony Architecture
Security Advanced
Custom Bundles
Microservices with Symfony
Real-time & WebSockets
Deployment & DevOps
Domina Symfony para tu próxima entrevista
Accede a todas las preguntas, flashcards, tests técnicos, ejercicios de code review y simuladores de entrevista.
Empieza gratis