[development] When writing a loop...

Daniel F. Kudwien news at unleashedmind.com
Mon Jul 6 16:44:34 UTC 2009


I guess that was some promotional work to teach developers to use Batch API
in core?

> -----Original Message-----
> From: development-bounces at drupal.org 
> [mailto:development-bounces at 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
> 



More information about the development mailing list