Nova reads a Policy multiple times - slows down the page #5234
-
Description:We have a nova installation running in production with over 50 different Models/Resources and correspoding Policies. What we are noticing is that the page is running very slow, most likely because there are many duplicate calls to the Policies. In our case over 250 calls and memory is increasing for every Policy we add. If we remove all the Policies, page is running fast again. I went and created a fresh laravel + nova installation, adding only one model and policy and found out that there are many duplicate calls to e.g. Detailed steps to reproduce the issue on a fresh Nova installation:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
This look correct, An index view would need to verify if user can:
|
Beta Was this translation helpful? Give feedback.
This look correct, An index view would need to verify if user can: