Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 1291

The most basic form of content on a Drupal site is a node.

8 votes
Accepted

Why does this code use so much memory?

$chunks = array_chunk($this->nids, 100); foreach ($chunks as $chunk) { $nodes = Node::loadMultiple($chunk); foreach ($nodes as $node) { //do stuff with the node here... } Drupal … \n<br>"; } I couldn't simply do loadMultiple for all the nodes at once as it was still using unholy amounts of memory, but chunking it and resetting the cache after each chunk seems to work nicely. …
  • 311
7 votes
2 answers
853 views

Why does this code use so much memory?

I've got code that loops through nodes in order to generate processed output. I've previously done an entity query that provided an array of node IDs. … The nodes in question have about fifty custom fields, including a couple that are paragraphs, which in turn have fields of their own. …
  • 311