I'm wondering what kind of performance I should expect from Craft 3's Control Panel.
I've created a (clever) structure, where I have matrix field which contains a superTable field.
- Matrix
- Row (block type)
- Column (superTable)
- Style (dropdown)
- Image (an asset)
- Text (redactor)
- Column (superTable)
- Row (block type)
The idea being that I can add rows, and inside the rows I can add a number of columns and fill the column with an image and/or text. From this I create a bootstrap grid.
Problem is that editing entries get really slow if and when the entry has larger amount of rows and columns. On the worst page I have 24 rows and loading the page makes 362 db queries and takes well over 10 seconds to load all redactor fields. This is way too slow to be usable.
Then I started again from an empty page, which has fields for:
- title
- categories
- hero image
- ingress/description
- and a button to add rows
An empty page creates 116 db queries. Every time I add a new row it adds 9 db queries. Every new column adds 3 db queries. So 10 new rows would create at least 90 new db queries, which is beginning to be problematic.
So is this the amount of db queries that I should expect, ie. is this normal? Is there something fundamentally wrong in the way I created the fields for the page using matrix and a superTable? What can I do to improve the performance?
(Running Craft 3.0.10.2 on Windows/IIS and MariaDB)