-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NgRestEventBehavior Performance Bug #693
Comments
Hi @mhunesi, The link luya-module-admin/src/ngrest/base/NgRestModel.php Lines 77 to 83 in a198b86
|
@mhunesi could you please post the full model? Maybe there other things related to that performance leak. How do you foreach those data in Frontend context? |
Sure. I use ListView Widget. When I comment ngRestScopes method everything's okay. This Product Model.
ProductWidget
SearchModel
|
Do you display relations? Are you sure its the log behavior? (if you just comment out the log behavior, does it change)? I think this could be because of SelectModel plugin.
Yes NgRestModel does provided some functions and helpers which requires more memory then ActiveRecord, but it should not be sooo drastically. What you also could do of course, is just use the ngrest model in admin area context, and generate an active record only model for frontend, but i think it would be better to find that memory pit. Thanks for helping us making LUYA better |
I have a model named Products and I use in frontend. I have a serious performance problem when extend from NgRestModel.
When I extend from NgRestModel
When I extend from ActiveRecord
I've reviewed and problem is NgRestEventBehavior.
vendor/luyadev/luya-module-admin/src/ngrest/base/NgRestModel.php:79
Profiling
Additional infos
The text was updated successfully, but these errors were encountered: