Merge pull request #2669 from NOYB/Diagnostics_/_Tables_-_Large_Tables_Perf_Band-Aid

This commit is contained in:
Stephen Beaver 2016-02-18 08:18:51 -05:00
commit 80f2220dcd

View File

@ -229,6 +229,17 @@ if (empty($entries)) {
</tr>
</thead>
<tbody>
<?php
// This is a band-aid for a yet to be root caused performance issue with large tables. Suspected is css and/or sorting.
if (count($entries) > 3000) {
print "<tr><td colspan='2'><pre>";
foreach ($entries as $entry) {
$entry = trim($entry);
print $entry . "\n";
}
print "</pre></td></tr>";
} else {
?>
<?php
foreach ($entries as $entry):
$entry = trim($entry);
@ -244,6 +255,7 @@ if (empty($entries)) {
</td>
</tr>
<?php endforeach ?>
<?php } ?>
</tbody>
</table>
</div>