symfony / recipes

Symfony Recipes Repository
https://github.com/symfony/recipes/blob/flex/main/RECIPES.md
MIT License
965 stars 476 forks source link

[DoctrineBundle] `collect-backtrace` enabled for all environments, not just dev #1257

Closed OskarStark closed 8 months ago

OskarStark commented 10 months ago

this enables for all environments, not just dev env (contrary to the title of the PR). When running tests, you probably have the profiler enabled (to use it in assertions), but you are unlikely to care about the backtraces being collected in the details of each query. And those backtraces are increasing memory usage of the DBAL collector a lot.

Originally posted by @stof in https://github.com/symfony/recipes/issues/1223#issuecomment-1816909863

stof commented 10 months ago

See https://github.com/symfony/symfony/issues/52634#issuecomment-1816900168 for a case where this was reported as causing memory issues.