Compare reads and writes before accepting a suggested index
Use the same query before and after. Verify that the requests are the same and that the queue update remains within the chosen limit.
Fictional example
A simulated operation reads the queue of paid orders from a unit. In a sample, the query time decreases from 32 to 18 milliseconds after an optimization attempt. The state update goes from 6 to 9. The team needs to check if the index makes sense for the reading and writing routine.
Step by step
- Create a separate, simulated copy of the orders and record filters, sorting, and expected identifiers. Include cases that were paid, canceled, and with the same date.
- Compare the lines read and the times with the same set before and after. Record the observation using the same test conditions.
- Mark in the exercise the verification of the list, writing, and reversion path. Before marking the writing, confirm the limit that the operation combined.
- Show evidence to those approving the change. If the returned orders differ, review the test before presenting the proposal to the real bank.
Try it on Digitalizando
Start with the example and try your own data. The session stays in your browser.
↑ See the example and stepsHow to read the result
The exercise records what evidence is available. The final decision depends on the results of the reading and writing tests and on those who understand the volume of the routine.
Open official service developers.cloudflare.com