-
Notifications
You must be signed in to change notification settings - Fork 641
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
[5.x]: Performance issues in element index when entry thumb is displayed #14760
Comments
Additional testingNo entry thumbnail, but using additional column with image Also I checked the DB queries for each of the above cases and filtered with "assets":With entry thumbnail: With entry thumbnail and image column: Image column only: (With no thumbnail and no image column there obviously where no duplicated queries nor queries with the word 'assets') |
Hey @brandonkelly! I see that you pushed d6a3117 that addresses this issue. |
Whoops! Scratch that last comment, it works just fine: Due to the table sorting the entries with no thumbnail where displayed at the top! 🤪 |
Yep! Just pointed that release note to this issue though. |
5.1.4 is out with that fix! |
What happened?
Description
When navigating to an entry index with entry thumbs enabled (via the entry type settings) performance is abnormaly slow.
Testing parameters
Structure with 154 entries, 76 of them with thumbnail, display mode "structured table" (plain table is about the same, cards is even slower)
Performance of "get-elements" action:
No thumbnails:
Processing time: 293 ms
Peak memory: 6.386 MB
Query count: 134
With thumbnails:
Processing time: 1,824 ms
Peak memory: 32.676 MB
Query count: 555
And now for a surprise...
"With thumbnails" but also with an additional column showing the same image thumbnail:
Processing time: 465 ms
Peak memory: 9.988 MB
Query count: 374
Comments
Craft CMS version
5.0.1
PHP version
8.3.2
Operating system and version
No response
Database type and version
MySQL 8.0.33
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: