Issue Bug Closed

#102986Memory is duplicated in DriverResult->fetchAll

Sascha Nowak 01/29/24, 18:18 updated 07/09/24, 15:12

Description

When fetching a lot of records (< 100.000) the memory is nearly duplicated when doing

return array_map([$this, 'mapResourceToString'], $data)

After some profiling I found out the the array_map in the function mapResourceToString leads to this behaviour.

Reviews 3

History 28

  1. Gerrit Code Review pushed patch set 1 for main to change 82700 status New Under Review 01/29/24, 18:34

  2. Gerrit Code Review pushed patch set 2 for main to change 82700 01/29/24, 18:38

  3. Gerrit Code Review pushed patch set 3 for main to change 82700 01/29/24, 18:39

  4. Gerrit Code Review pushed patch set 4 for main to change 82700 01/30/24, 15:46

  5. Gerrit Code Review pushed patch set 1 for 11.5 to change 82724 01/31/24, 06:48

  6. Gerrit Code Review pushed patch set 1 for 12.4 to change 82725 01/31/24, 06:48

  7. Sascha Nowak commented and changed status Under Review Resolved done 0 % 100 % 01/31/24, 07:05

    Applied in changeset commit:81e5e51738f1b934872f0d2abb6696dc9b7d8a50.

  8. Benni Mack changed status Resolved Closed 07/09/24, 15:12