constant TAXONOMY_XML_MAX_BATCH_SIZE in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 6.2 taxonomy_xml.module \TAXONOMY_XML_MAX_BATCH_SIZE
- 6 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.
If you have a chunky server, good memory and a large timeout, it's probably fine to push this up to 200 or more.
1 use of TAXONOMY_XML_MAX_BATCH_SIZE
- taxonomy_xml_add_term_to_batch_queue in ./
taxonomy_xml.process.inc - Manage batch queues by dividing them into recursive 'rounds'.
File
- ./
taxonomy_xml.module, line 69 - Make it possible to import and export taxonomies as XML documents.
Code
define('TAXONOMY_XML_MAX_BATCH_SIZE', 50);