Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i'm using entity_translation combined with OG and VBO and a big user database. When i try perform an VBO action on my OG group, my server uses very much memory.
I've used xhprof for debugging an figured that the function entity_translation_current_form_get_handler() is called quite often form the same (VBO) form. My first and only solution is to set a static on the function.
Comment | File | Size | Author |
---|---|---|---|
#7 | static_entity_translation_current_form_get_handler-2093773-7.patch | 1 KB | Anonymous (not verified) |
#3 | static_entity_translation_current_form_get_handler-2093773-3.patch | 1 KB | Anonymous (not verified) |
#1 | static_entity_translation_current_form_get_handler-2093773-1.patch | 1 KB | Anonymous (not verified) |
after entity_translation_current_form_get_handler.png | 79.4 KB | Anonymous (not verified) | |
after overal.png | 27.83 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedand here's the patch
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedHmm.. patch #2 was made for beta3..
This one is for the current HEAD.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #6
Anonymous (not verified) CreditAttribution: Anonymous commented#3: static_entity_translation_current_form_get_handler-2093773-3.patch queued for re-testing.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAlmost the same as #3 but return value is now preset..
Comment #8
plachentity_translation_current_form_get_handler()
is no longer used in the current 7.x-1.x HEAD. Can you check whether you still need this optimization?Comment #8.0
plachupdating description
Comment #9
grahamCWe've been running into the same problem when using DraggableViews to update the ordering of nodes. Saving the order of ~100 nodes with multiple translations needed about 2.5GB of memory!
I've just tried the latest -dev (2013-Oct-25), and that seems to resolve it here.