What is the most efficient time frame for changing pairs?
I prefer at least a couple of hours, but experimenting at intervals up to 45 minutes has shown that the optimal time is around 90 minutes.
Links, see para-programming explanation
source to share
I believe the best idea is to split the problem you are working on into smaller logical sub-problems. Each such task should be completed in about 45 minutes (for example, a high school lesson). Programmers can switch after each such task.
Note that dividing the task is already some work on the target. Any task can (and should) be split into smaller pieces as soon as possible. It is a good idea to break up the task into smaller parts at the pair level (the team leader or manager does not need to be included in this process) - remember that agile helps groups self-organize.
Of course, if the sub-task is taking longer (more than 45 minutes), then you don't need to switch until it's complete.
source to share