elementindex.twig / custom elements performance in plugin best practices #15920
MatthiasBrodelet
started this conversation in
General
Replies: 2 comments 3 replies
-
What data are you showing on the index, besides the heading column? Anything that is causing additional n+1 queries? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@brandonkelly Why didn't I think of that :) You are right, there are some column fields which do some additional requests. I guess I can add a cache tag to this query to speed it up for the next ones? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a custom plugin which has its own database table and a custom element.
This all works as intended but I notice a big slowdown in performance when looking at the overview page which extends the '_layouts/elementindex' template.
I have already added indexes in the database but this has not fixed the issue completely.
The performance difference in the Craft Commerce orders overview compared to my plugin is enormous.
What are some best practices in this case?
Beta Was this translation helpful? Give feedback.
All reactions