Sub topic 6
How big and how often: sizing a batch
This chapter assumes you already group similar tasks and give each group a time block, as covered in the earlier chapters. It also assumes you can read short Python snippets. The code is optional, but it makes the arithmetic concrete. The chapter is about the two numbers every batch needs: how much goes into one session, and how often the session happens.
The two dials
Every batch has two settings.
- Size is how much work one session handles. You can measure it in tasks or in minutes. Minutes are better because tasks vary in length.
- Frequency is how often the session happens: twice a day, daily, weekly.
The two settings are linked. Work arrives at some rate. If sessions are rare, each one has to be large. If sessions are frequent, each can be small. Choosing one choice therefore constrains the other.
Picking a batch size by feel produces two typical failures.
- The batch is too small. Setup cost dominates. You open the tool, reload the context, and then stop before you have gained anything.
- The batch is too large. Attention drops late in the session, quality falls, and the work that matters is delayed because it sits in a queue.
The aim is a session long enough to repay its setup cost, and short enough to finish before you tire. It also has to be frequent enough that nothing waits longer than it can afford to.
Why a batch needs a minimum size: setup cost
Batching helps because you pay the cost of entering a context once instead of many times. That entry cost is the setup: opening the expense system, finding the right folder, remembering where you left off.
You can model it simply. A session of n tasks takes the sum of the task times plus one setup. Efficiency is the share of the session spent on actual work.
def batch_efficiency(task_minutes, setup_minutes):
work = sum(task_minutes)
return work / (work + setup_minutes)
for n in (1, 3, 6, 12):
tasks = [5] * n
print(n, round(batch_efficiency(tasks, 10), 2))The output is:
1 0.33
3 0.6
6 0.75
12 0.86With a 10-minute setup and 5-minute tasks, a one-task session spends two thirds of its time on setup. At six tasks, three quarters of the time is work. At twelve, the gain over six is only eleven points. The curve flattens, so the first few tasks in a batch are worth much more than the last few.
Use this when you pick a minimum. If a context has a large setup, such as logging into a slow finance system, wait until enough tasks have collected. If setup is nearly free, such as replying to a message in a tool that is already open, there is little reason to wait.
Why a batch needs a maximum size
The curve flattens for a second reason. Long sessions on repetitive work hit diminishing returns:
- Attention drops. Errors in forms, numbers, and replies rise late in a long session.
- Boredom pushes you to skim, which often creates rework.
- The queue behind the session grows while you are inside it. Urgent items wait for the session to end.
- A very large batch is easy to skip. A 3-hour admin block gets postponed. A 30-minute block does not.
A practical cap depends on the type of work.
| Batch type | Typical session length | Why |
|---|---|---|
| Email and messages | 20 to 40 minutes | Low demand per item, but the queue never ends, so a cap stops it from absorbing the day |
| Admin (forms, expenses, booking) | 30 to 60 minutes | Tedious, error-prone work. Quality drops when you are tired |
| Calls and meetings | 2 to 3 hours in a block | Social energy runs out. Needs gaps between calls |
| Focused creative or analytical work | 60 to 120 minutes | Needs deep concentration, so the block has to be long, but it is not mixed with small tasks |
These are starting points, not rules. Treat them as the first guess you will adjust in a review.
Choosing frequency from the waiting time you can tolerate
Frequency should follow from one question: how long can an item wait before waiting causes harm?
If a request can wait up to four hours, you need at least one session every four hours. If it can wait two days, a session every second day is enough. Anything that cannot tolerate the gap does not belong in this batch (see the chapter on when not to batch).
Next, check that the session capacity matches the work arriving. This is a queue calculation. Demand is arrivals multiplied by minutes per item. Supply is sessions multiplied by block length. If demand exceeds supply, the backlog grows without limit, whatever the schedule looks like.
def utilization(arrivals_per_day, minutes_each, sessions_per_day, block_minutes):
demand = arrivals_per_day * minutes_each
supply = sessions_per_day * block_minutes
return demand / supply
print(round(utilization(30, 4, 2, 45), 2))
print(round(utilization(30, 4, 3, 45), 2))The output is:
1.33
0.89Thirty messages a day at 4 minutes each is 120 minutes of demand. Two 45-minute sessions supply 90 minutes, so utilization is 1.33 and the inbox grows every day. Three sessions supply 135 minutes, so utilization is 0.89 and the queue can be cleared.
Do not plan for 1.0. Real work has variance: some days bring 45 messages. A utilization near 0.7 to 0.85 leaves room for busy days. A value above 1.0 means you need a longer session, more sessions, or less incoming work. Often the cheapest fix is to reduce the arrivals, for example by unsubscribing or by creating a template for a repeated reply.
Filling a block: a capacity rule
A calendar block has a fixed length. The task list for one batch often exceeds it. You then need a rule for what goes in and what waits for the next session. The function below picks tasks shortest first until the block is full.
def fill_block(tasks, capacity_minutes):
"""Pick tasks for one time block, shortest first, without exceeding its capacity."""
chosen, deferred, used = [], [], 0
for task in sorted(tasks, key=lambda t: t["minutes"]):
if used + task["minutes"] <= capacity_minutes:
chosen.append(task)
used += task["minutes"]
else:
deferred.append(task)
return chosen, deferred, used
admin = [
{"name": "Submit expense form", "minutes": 15},
{"name": "Book travel", "minutes": 20},
{"name": "Update timesheet", "minutes": 10},
]
chosen, deferred, used = fill_block(admin, 30)
print([t["name"] for t in chosen], used)
print([t["name"] for t in deferred])The output is:
['Update timesheet', 'Submit expense form'] 25
['Book travel']Two items fit in 25 minutes. "Book travel" at 20 minutes would take the total to 45, so it is deferred to the next session.
Shortest first maximizes the number of tasks completed. It has two flaws you should know about.
- It does not always fill the block best. Here 25 of 30 minutes are used. Updating the timesheet (10) and booking travel (20) would use exactly 30. Finding the best combination is a version of the knapsack problem. For a handful of daily tasks, you can fix this by looking at the leftover time and swapping a task by hand.
- It can starve long tasks. If short tasks keep arriving, "Book travel" is deferred every time. The task ages without ever being done.
The second flaw is the more serious one. Two common fixes are to sort by priority first and then by length, or to raise a task's priority by one each time it is deferred. The priority version looks like this.
def fill_block_by_priority(tasks, capacity_minutes):
"""Pick the highest-priority tasks first; break ties with the shorter task."""
chosen, deferred, used = [], [], 0
for task in sorted(tasks, key=lambda t: (-t["priority"], t["minutes"])):
if used + task["minutes"] <= capacity_minutes:
chosen.append(task)
used += task["minutes"]
else:
deferred.append(task)
return chosen, deferred, used
admin = [
{"name": "Submit expense form", "minutes": 15, "priority": 2},
{"name": "Book travel", "minutes": 20, "priority": 3},
{"name": "Update timesheet", "minutes": 10, "priority": 1},
]
chosen, deferred, used = fill_block_by_priority(admin, 30)
print([t["name"] for t in chosen], used)
print([t["name"] for t in deferred])The output is:
['Book travel', 'Update timesheet'] 30
['Submit expense form']"Book travel" is taken first because its priority is highest. The expense form no longer fits, so the 10-minute timesheet fills the remaining space. This version used the whole block, but the tradeoff is that the expense form is now the one waiting. Decide which rule matches the cost of delay in your work.
Edge cases that change the numbers
Estimates are usually too low
People underestimate task time, and a session built to 100% of the estimates will overrun. Fill a block to about 80% of its length and leave the rest as a buffer. If the buffer is unused, use it for the deferred list.
Arrival is uneven
Work does not arrive evenly. Mondays are heavy and Fridays are light, and month-end brings expenses. Two responses work well.
- Size to the average, and let the queue absorb peaks over a few days.
- Add a flexible overflow block that you use only when the backlog passes a threshold.
Minimum batch thresholds
Some batches should not run when they are nearly empty. A rule such as "run the weekly admin session only if there are at least five items, or if the oldest item is five days old" avoids a wasted setup and keeps a ceiling on waiting time. It combines a minimum size with a maximum age.
Batches that grow back
A session that clears the queue is a signal that inflow is stable. A session that never clears it is a signal of over-capacity. Do not treat the second case as a discipline problem. Fix the arithmetic.
The first and last session of the day
Energy varies through the day. Put attention-heavy batches (analytical work, difficult messages) in your best hours, and use low-energy hours for routine admin. This affects frequency too, since you may want two shorter admin sessions at low points in the day instead of one long one.
A worked sizing example
Suppose you handle 24 support emails a day at about 3 minutes each, and a customer expects an answer within a working day (8 hours).
- Waiting tolerance. One working day means the gap between sessions can be as long as about 8 hours. One session per day would technically satisfy this, but a reply written at the very end of the day would arrive just at the limit.
- Demand. 24 emails × 3 minutes = 72 minutes a day.
- Supply. Two sessions of 45 minutes give 90 minutes, a utilization of 0.8. That is within the 0.7 to 0.85 range.
- Attention check. 45 minutes of replying is within the 20 to 40 minute guide for messages, slightly over. Three sessions of 30 minutes give the same 90 minutes. Choose three if you notice quality drops late in the 45-minute session.
- Schedule. Put sessions at 10:00, 13:30, and 16:00. The longest gap is 18 hours overnight, which is fine for a one-day tolerance, and replies mostly go out within a few hours.
- Review. After two weeks, check whether you finished each session inside its block and whether the queue was empty at the end of the day.
This is a first estimate. The next chapter covers how to review and adjust it using what you observe.
Common errors
- Sizing by the number of tasks. A batch of ten five-minute tasks and a batch of ten sixty-minute tasks are not the same size. Size in minutes.
- Planning to 100% utilization. There is no buffer for estimation error or busy days.
- Letting the largest queue set the schedule. The most urgent items should set the maximum gap, not the most numerous ones.
- Ignoring the deferred list. Deferred tasks need an owner and a date, or they become permanent backlog.
- Never changing the setting. A block that worked in a quiet month may be too small in a busy one.
Summary
- Size has a floor set by setup cost and a ceiling set by attention and delay.
- Frequency comes from the longest acceptable wait, then gets checked against workload.
- Compare demand with capacity, and keep utilization below about 0.85.
- Fill blocks to roughly 80%, and choose a deferral rule that does not starve long tasks.
- Treat every setting as a hypothesis to test and revise.
Exercise
You get 40 invoices a week to approve, each taking about 6 minutes. You currently have one 60-minute approval session per week. Find the utilization. Then suggest a change that brings it under 0.85 without making any single session longer than 60 minutes.
Show answer
Demand is 40 × 6 = 240 minutes per week. Supply is one 60-minute session, so utilization is 240 / 60 = 4.0, which means the backlog grows by 180 minutes every week. To get below 0.85 you need supply of at least 240 / 0.85 ≈ 283 minutes, so at least 5 sessions of 60 minutes (utilization 0.8). For example, run a 60-minute session on five days of the week. The alternative is to cut demand, for example with auto-approval of small invoices, so that fewer invoices need a manual review.
Exercise
A task list for a 40-minute block holds tasks of 25, 20, 15, and 10 minutes. Shortest first picks which tasks, and how much of the block does it use? Is there a better combination?
Show answer
Shortest first sorts to 10, 15, 20, 25. It takes 10 (total 10), 15 (25), then 20 would make 45, which is over 40, so it is deferred. 25 would make 50, also deferred. The block uses 25 of 40 minutes. A better combination is 25 + 15 = 40, which fills the block exactly, or 20 + 10 = 30 plus nothing else fits. The best fill is 25 + 15 = 40. This shows that shortest first maximizes the count of tasks, not the use of time.
Exercise
Why is a utilization of exactly 1.0 a bad target for a batch schedule?
Show answer
At 1.0, demand equals supply on average, so any day with more work than usual, or any task that takes longer than estimated, leaves unfinished work. Because there is no spare capacity, the backlog from that day is never cleared, and waiting times keep growing. Leaving utilization around 0.7 to 0.85 provides a buffer to absorb variation.