From 31a63650db1ce497fad38348d8afc4c45b045574 Mon Sep 17 00:00:00 2001 From: Phil Norton Date: Fri, 18 Oct 2024 17:22:45 +0100 Subject: [PATCH] Added a slide to show the batch running. Tweaked the formatting and wording of some slides. --- src/slides.md | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/src/slides.md b/src/slides.md index f067f18..7949ab7 100644 --- a/src/slides.md +++ b/src/slides.md @@ -35,9 +35,9 @@ marp: true --- ## Source Code -- This presentation is available at +- This presentation: https://github.com/hashbangcode/drupal-batch-api-talk -- All code seen in this presentaiton is available at +- All code seen here is available: https://github.com/hashbangcode/drupal_batch_examples - I have also written extensively about the Batch API on https://www.hashbangcode.com/ @@ -89,7 +89,7 @@ Source: https://www.cloudflare.com/learning/performance/more/website-performance - But, setting them high would cause problems on your web server. - Think about how long a page request should take in you web server. 2-5 seconds MAX! -- The more resources you give to your web server, the users you can accommodate at once. +- The more resources you give to these services, the users you can accommodate at once. --> --- @@ -176,14 +176,14 @@ foreach ($chunks as $id => $chunk) { ## Initialise - Start Batch Run -Set the batch running by calling `toArray()` and passing the array to `batch_set()`. +- Set the batch running by calling `toArray()` and passing the array to `batch_set()`. ```php batch_set($batch->toArray()); ``` -The whole purpose of `BatchBuilder` is to generate that array. -This will trigger and start up the batch process. +- The whole purpose of `BatchBuilder` is to generate that array. +- This will trigger and start up the batch process. --- ## Finish - The Finished Callback