Merge #16593 - Major performance improvements on browsing rows

Pull-request: #16593
Ref: #16005

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-01-28 15:38:39 +01:00
commit 6d7890be8b
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 533 additions and 512 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2721,6 +2721,10 @@ class Results
$whereClauseMap = $this->properties['whereClauseMap'];
$columnCount = $this->properties['fields_cnt'];
// Load SpecialSchemaLinks for all rows
$specialSchemaLinks = SpecialSchemaLinks::get();
for ($currentColumn = 0; $currentColumn < $columnCount; ++$currentColumn) {
// assign $i with appropriate column order
$i = is_array($col_order) ? $col_order[$currentColumn] : $currentColumn;
@ -2824,8 +2828,6 @@ class Results
}
// Check for the predefined fields need to show as link in schemas
$specialSchemaLinks = SpecialSchemaLinks::get();
if (! empty($specialSchemaLinks[$dbLower][$tblLower][$nameLower])) {
$linking_url = $this->getSpecialLinkUrl(
$specialSchemaLinks,