You are here

constant TAXONOMY_XML_MAX_BATCH_SIZE in Taxonomy import/export via XML 6

Same name and namespace in other branches
  1. 6.2 taxonomy_xml.module \TAXONOMY_XML_MAX_BATCH_SIZE
  2. 7 taxonomy_xml.module \TAXONOMY_XML_MAX_BATCH_SIZE

The batch process is tricky. When we import a document, it may have any number of external references that need retrieving and resolving. As they are found, they are added to a queue. As the queue is processed, it in turn adds more references branching off the process. Probably growing exponentially for a few rounds. To try and avoid the worst of the scaling problems, we will limit batch sizes to manageable numbers. It is impossible to extimate just how many or how deep the spidering process will go - we just have to aim and go.

1 use of TAXONOMY_XML_MAX_BATCH_SIZE
taxonomy_xml_add_term_to_batch_queue in ./taxonomy_xml.module
Manage batch queues by dividing them into recursive 'rounds'.

File

./taxonomy_xml.module, line 67
taxonomy_xml.module This module makes it possible to import and export taxonomies as XML documents.

Code

define('TAXONOMY_XML_MAX_BATCH_SIZE', 50);