Review TYPO3_8-7 Merged

53271[BUGFIX] Avoid redundant SQL queries in ReferenceIndex

Benni Mack CR +2 V +2 Hard +264 −110 updated 06/20/17, 18:19

Commit message

Change methods inside ReferenceIndex to allow them to receive an
existing record as array rather than a UID to avoid each method loading
it from the database again to read record or record fields.

For a copy operation on 25 pages with ~100 content elements total there
are 1,500 SQL queries less leading to a ~40% time reduction and
~10% memory reduction.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1