When you have only a few hours a week for learning, the choice rarely boils down to a question of «theory or practice». You still need to solve the current task, but learning a tool without the necessary prerequisites may leave you with a result that is hard to explain. And repeating familiar foundations on its own will not show whether you can apply them in a different situation.

It is more useful to distribute time across three kinds of work: closing a specific gap in understanding, mastering a tool for the nearest task, and independently checking transfer to a new example. Below is a way to compose such a plan and revise it after two weeks.

Important: the hours and proportions given are an illustrative starting hypothesis, not an optimum established by research. Learning research offers ideas for structuring individual sessions, but it does not determine how an engineer should divide a weekly budget.

How to choose what to spend time on

Start not with a list of courses, but with the current task and three questions.

  1. Which prerequisite is blocking progress? Pick a fundamental topic if, without it, you cannot explain what is happening or interpret the tool's output. Study not the whole field, but the gap needed for the next decision.
  2. Which tool do you need now? Choose the minimal set of capabilities for the specific task. The goal is to get data on the basis of which you can formulate and test a hypothesis, not to master every feature of the product.
  3. What will you be able to do without step-by-step guidance? Reserve time for a different example where you must choose the approach yourself and explain the result. That is a check of transfer, not a repetition of the same actions from memory.

If the task's deadline is close, tool-focused work may take the larger share of the budget. If the tool's outputs are still unclear, it is sensible to first increase the share of prerequisites. In both cases, keep at least a small block of independent checking: otherwise it will be hard to distinguish understanding from following a familiar instruction.

Example: a slow SQL query and 6 hours a week

Suppose a specialist needs to deal with a slow SQL query. There is no real measurement result below: this is a training scenario, and the time allocation was chosen for illustration.

1. Record the initial behaviour

Write down the query's purpose, the conditions under which it runs, and the observed execution time. Save the available execution plan and note the conditions that matter for comparison: data volume, query parameters, environment, and measurement method. If possible, repeat measurements and take into account cache state and load: a single timing on its own may be unstable.

You do not have to start by changing the query or creating an index. First you need to understand what exactly you are going to compare. How to obtain a plan and whether you can see actual metrics depend on the DBMS and the available tools; an estimated plan should not automatically be taken as the actual behaviour of execution.

Caution: in PostgreSQL, EXPLAIN ANALYZE does actually execute the query, so side effects are possible, including data modification. In other DBMSs, the actual-analysis mode may also execute the query: check the documentation of the specific DBMS. Test queries capable of modifying data in a safe test environment, taking possible side effects into account.

2. Find the missing prerequisite

Try to explain without hints what the query does: which data it selects and joins, where large intermediate results may appear, and what the main operations of the available plan show. Then check your explanation against documentation or ask a colleague to point out the gaps.

For example, if you do not understand the connection between filter conditions and data access through an index, devote time specifically to that topic. If the difficulty involves table joins or reading the estimates in the plan, study the corresponding prerequisite. This is not a full SQL-optimisation course: topic choice depends on the gap you have found.

3. Master the diagnostic tool you need

Work out how, in your DBMS, to obtain an available plan and which metrics can be matched against the original execution. For the current query, choose one proposed change. Before applying it, write down a prediction: which part of the plan or which observable metric, in your view, will change and why.

Check the change in an appropriate safe environment and under conditions as close as possible to the original ones. Compare not only the timing but also the plan, if one is available. A faster query does not by itself prove that your explanation is correct: the result may have been influenced by data, environment, or measurement conditions. Conversely, a lack of speed-up does not necessarily mean you learned nothing; it means that the specific prediction or the checking conditions need examination.

4. Check transfer to another query

Take a query that differs from the original, for example one using different filter conditions or a different table join. Do not repeat the ready-made recipe. Without step-by-step instructions, explain its purpose, hypothesise a possible cause of the cost, and write down a prediction before viewing or changing the available plan. Then check the prediction and analyse the discrepancies.

What matters here is not a mandatory speed gain but the observable process: were you able to choose what to look at, justify the hypothesis, and explain the resulting outcome. If a colleague is available, ask them to check that explanation, rather than just offer a ready-made fix.

A two-week learning plan

With a budget of 6 hours a week, you could start like this:

Week Prerequisites and foundations Tool and current task Independent transfer check Total
1 2 hours 3 hours 1 hour 6 hours
2 1.5 hours 3 hours 1.5 hours 6 hours

This is not a universal recipe. The second-week option assumes that after the first week you can already slightly reduce the study of prerequisites and increase the time on a new example. If observations contradict this, adjust the plan sooner rather than waiting for the end of week two.

Week 1: find the gap and get a first check

  • 2 hours on prerequisites. Try to explain the query and the main plan operations. Note what you do not understand, then work through the most important gap and restate it in your own words.
  • 3 hours on the tool and the current query. Record the initial behaviour, learn to obtain an available plan, formulate a prediction, and test the chosen change under comparable conditions. Write down the result and the limits of the comparison.
  • 1 hour on transfer. Take another query. Before checking, formulate a prediction, then independently explain what the available plan showed and where expectation diverged from observation.

Week 2: repeat and check independence

  • 1.5 hours on foundations. Return to the first week's gap without prior re-reading: try to explain it from memory, then check yourself and correct the errors.
  • 3 hours on the current task. Continue diagnostics or test the next justified change. Again write the prediction before checking and keep the comparison conditions.
  • 1.5 hours on transfer. Work through a new or substantially different query without step-by-step hints. Compare your prediction with the observation and, if possible, get feedback on your explanation.

Spread the blocks over several sessions so that there is a gap between returns to the material. Choose specific days according to availability: the cited studies do not set a schedule for engineering practice.

How to revise the proportions

At the end of week two, use the results as the basis for the next plan, keeping the total budget of 6 hours. Which observations to record is suggested by the short feedback protocol at the end of the article. This is an editorial rule, not an experimentally proven optimisation formula.

  • A specific gap was identified that prevents explaining the plan or the result: move 0.5 hours from tool work to foundations. Starting from the second-week plan, that yields 2 hours on foundations, 2.5 hours on the current task, and 1.5 hours on transfer. An unconfirmed prediction is a reason to find out the cause, not an automatic proof of a gap in theory.
  • You can justify the plan and apply the approach to a new query: move 0.5 hours from foundation repetition to the transfer check. Starting from the second-week plan, that yields 1 hour on foundations, 3 hours on the current task, and 2 hours on transfer.
  • Signals are mixed, data are insufficient, or the cause of a prediction discrepancy is unknown: keep the proportions for another week and clarify which specific check needs repeating. For example, repeat a measurement under comparable conditions and verify your independent explanation of the plan against documentation or a colleague: this helps distinguish a measurement problem from a gap in understanding. Do not change the allocation merely because a calendar deadline has passed.

If you adjusted week two earlier, apply the same shifts to the shares you actually chose, not to the numbers in the table. If necessary, limit the transfer so that each needed kind of work retains enough time.

What research says and what it does not

In the experiment by Karpicke and Blunt, students who practised retrieval of material from science texts performed better a week later than students who studied the material using concept maps. The assessment included comprehension questions and inferences. This is grounds for trying self-retrieval in a learning block, but the study did not examine engineering skills and did not determine shares of hours.

In Butler's four experiments, repeated testing was compared with repeated study of prose texts. A week later, the participants who had been tested performed better on retention and transfer checks, including inference questions in the same or a different subject area. The material was texts, not engineering tasks; the results do not establish a block size for checking a new SQL query.

A quantitative synthesis of distributed practice covered 839 assessments from 317 experiments in 184 articles on verbal retrieval. The interval between sessions and the time until final testing were jointly associated with retention; the interval corresponding to the best retention increased with the time until testing. The review is limited to verbal-retrieval tasks and does not set an engineering schedule or allocation of hours.

Thus, retrieval without hints, a separate transfer check, and returning to material after a gap are reasonable ideas for a plan, not guarantees of its effectiveness in a specific job.

A short feedback protocol

After each block or at the end of the week, write down four points:

  1. Question and prediction: what did you try to explain or change, and what did you expect before the check?
  2. Actual result: what did the plan and measurements show, under what conditions were they obtained, and what remains uncertain?
  3. Independent explanation: what were you able to justify without hints, and where did you need help?
  4. Next plan: which allocation of hours will you change or keep, and what will you check next week?

Compare the learning outcome with the outcome of the current system, but do not conflate them. The plan's goal is not to prove that the chosen hours are optimal, but to make the next choice of time better grounded and revisable.