When writing a loop...
... please always consider: can this loop become impossibly long? If you are iterating over anything without set limits then the answer is likely yes. Typically, nodes, files, users, terms, comments, aggregator items, menu links are the things that some sites can easily have millions of. Roles and vocabularies are an example which are very unlikely to become unwieldy large. Thanks NK
I guess that was some promotional work to teach developers to use Batch API in core?
-----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Karoly Negyesi Sent: Monday, July 06, 2009 6:22 PM To: Drupal development Subject: [development] When writing a loop...
... please always consider: can this loop become impossibly long? If you are iterating over anything without set limits then the answer is likely yes. Typically, nodes, files, users, terms, comments, aggregator items, menu links are the things that some sites can easily have millions of. Roles and vocabularies are an example which are very unlikely to become unwieldy large.
Thanks
NK
participants (2)
-
Daniel F. Kudwien -
Karoly Negyesi