问题
I'm having hard time with symfony and cpu/memory leak, i'm new to symfony i don't know if i'm messing any tips or techniques to overcome this problem.
i'm hosting my current symfony project on a vps and it halts almost every other hour.
I would like also to know the answers for these questions :
when i execute a doctrine query using (fetchOne, fetchAll, execute) i get a lot of extra symfony stuff like table name and structure ... is there any way to get just the data ?
what should i do to optimize my symfony app
Thanks
回答1:
Your problem looks very abstract. It's very hard to help you without more info. Anyway, I think you should take a look to this question and search about Doctrine hydration options: What is Doctrine hydration?.
Remember to use the symfony debug web bar.
来源:https://stackoverflow.com/questions/11144597/symfony-memory-issues