craftcms / craftcms/cms

[3.x]: Performance issues loading a big table field in craft

Open
#10,890 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug craft3 performance :running_woman:
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

I have a rare scenario where I have a big table field with ~30 columns that is filled with ~100 rows on one entry. Due to the size of this table it takes a while to render it, both on the front-end and in craft, however.. Rendering the table in Craft is nearly impossible as opening the page usually results into a timeout. (system report is all good)

Steps to reproduce

1 Create a big table, add 100 rows
2 Open page in Craft

Craft CMS version

3.7.37

PHP version

8.1.4

Operating system and version

Linux 5.10.47-linuxkit

Database type and version

MySQL 8.0.19

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no files, tests, or entry points. Start by reproducing the timeout with a table field containing about 30 columns and 100 rows on Craft CMS 3.7.37, then identify the rendering path involved; done means the page opens without timing out and the table remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.