symfony - Is there a reason Commands are Slower than normal Requests? -
i refactoring code transform actions in commands in symfony 2.7 application.
at first, making request endpoint, corresponding controller making call service , responded 200 http response.
now, want execute service command interface use console component of symfony.
the problem is: command way very, slow. there reason that?
commands, default, run in dev environment, meaning more logging, capturing data profiler...
try appending --env=prod
.
Comments
Post a Comment