User tests: Successful: Unsuccessful:
Pull Request for Issue #22700
This should make the CSV export a bit more memory efficient by using a database iterator for processing the database results versus trying to load the entire resultset into memory first.
A new method is added to the actionlogs model to fetch the results as a JDatabaseIterator
versus an array of stdClass
objects with the common code between the two getLogs
methods moved into a private function to keep things DRY.
The helper method now checks for any valid iterable, which per the is_iterable()
function added to PHP 7.1 is any array or object implementing the core Traversable
interface and throws an Exception if a non-iterable is given. The Symfony polyfill package for PHP 7.1 is pulled in to be able to use this function.
Try to export the CSV file for action logs data. Should still work on smaller data sets, should work better for larger data sets.
CSV file exports
Memory issues on larger data sets.
Status | New | ⇒ | Pending |
Category | ⇒ | Repository Administration Language & Strings External Library Composer Change Libraries |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-10-23 19:41:19 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
?
?
|
Sounds like a good plan to me need to be tested.?