This module introduces a significant performance issue.
This is detailed in the port of this module into pathauto proper:
https://www.drupal.org/node/936222#comment-9847907
We can easily provide this as a patch for this module until that patch gets in.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 2476393-fix-entity-load-performance.patch | 1.14 KB | dave reid |
| #11 | 2476393-fix-entity-load-performance.patch | 1.08 KB | dave reid |
| #6 | performance_issue-2476393-6.patch | 2.94 KB | amoebanath |
| #4 | performance_issue-2476393-4.patch | 2.71 KB | amoebanath |
| #1 | performance_issue-2476393-1.patch | 2.93 KB | amoebanath |
Comments
Comment #1
amoebanath commentedPorted patch pathauto-persists-936222-281_0 from the linked issue for the
pathauto_entity_loadandpathauto_entity_state_load_multiplefunctions.Comment #2
amoebanath commentedComment #4
amoebanath commentedCorrected function names & tweaked Drupal static usage.
Comment #6
amoebanath commentedI missed the drupal_static_reset out!
Comment #7
sebastien m. commentedNo news ?
Comment #8
dave reidShouldn't this just be SELECT DISTINCT entity_type instead of using a GROUP BY?
This is handled by https://www.drupal.org/node/2107365 and not related to performance.
table does not exist, so a default value was provided. Please make sure to run
update.php');+ drupal_set_message($message, 'warning');
+ watchdog('pathauto', $message, array(), WATCHDOG_WARNING);
+ }
+ $result = array();
+ foreach ($entity_ids as $id) {
+ $result[$id] = FALSE;
+ }
+
+ return $result;
+ }
This is not relevant for pathauto_persist.
Comment #9
dave reidThis should be left out too.
Comment #10
dave reidUpdated with all the un-relevant sections removed.
Comment #11
dave reidTry that again, I had staged everything but didn't use git diff --cached.
Comment #13
dave reidTurns out drupal_static_reset() doesn't like using a query result as the default parameter. Need to set separately.
Comment #14
dave reidCommitted #14 to 7.x-1.x.