Memory usage becomes huge when we use book node reference in an node add / edit page and add large number of book references (say 60) using add another feature of field collection.
We can optimize the memory usage in that case by not using book_get_books() which uses a static caching and load large number of fields. All of these fields are not necessary when called from function _book_add_form_elements().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sumanchalki created an issue. See original summary.

suman.abc’s picture

roynilanjan’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: book-node_reference_memory_issue-2637600-1.patch, failed testing.

suman.abc’s picture

Version: 7.x-dev » 7.30

The last submitted patch, 2: book-node_reference_memory_issue-2637600-1.patch, failed testing.

suman.abc’s picture

suman.abc’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: book-node_reference_memory_issue-2637600-7.patch, failed testing.

Version: 7.3 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.