Problem in Factory logic in version 8 up #41744
Unanswered
ThunderBirdsX3
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found this problem after upgrade my project from v7 to v8 then refactor factory and seeder class.
It not a bug, But i think this problem come from logic.
Because it try to call
newInstance
it meannew Class
every single chain method call likestate
count
etc. And I think that not good.It should call something like
setAttribute
.I got the problem because my Factory class, Have to query some data from database (Data from seeder, I use factory to generate mockup data, When init project for development), Then it very very slow, Because it call
newInstance
too much.Beta Was this translation helpful? Give feedback.
All reactions