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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -