Add 10 fields and save few articles with them. Create a list with 100 items on frontend and display it.
Single query for all items&fields.
1000 queries.
Labels |
Added:
?
|
Title |
|
Title |
|
Title |
|
||||||
Status | New | ⇒ | Closed | ||||
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-26 21:59:56 | ||||
Closed_By | ⇒ | brianteeman |
Status | Closed | ⇒ | New |
Closed_Date | 2017-03-26 21:59:56 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Reopening. The PR is an improvement but there's still room for better.
I'm not sure if we want to change then tags to work like fields and use the same events there as well as it is the same problem with tags.
If you want to get all fields for articles in one query then IMO you have to use some magic:)
Ex:
Instead getFieldValue()
use getField()
to aggregate all fields and then you have to use magic method __get
for $field->value
.
This way, when you start using first value you load all fields.
Off course this is more complicated solution and not always acceptable.
Category | ⇒ | com_content |
Category | com_content | ⇒ | com_content SQL |
Status | New | ⇒ | Discussion |
Labels |
Added:
J3 Issue
|
Title |
|
Thank you for raising this issue.
Joomla 3 is now in security only mode with no further bug fixes or new features.
As this issue doesn't relate to Joomla 4 it will now been closed.
If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4.
cc @zero-24
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-23 13:49:46 |
Closed_By | ⇒ | zero-24 | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
See #14558