Operations · 6 minute read
The year-end is where school systems break
Everything else is a screen. This one changes every record in the school at once.
Four things that have to be true #
- A dry run that changes nothing — You see what would happen to every student — promoted to which class, retained, graduated — and you change what is wrong before anything is written.
- Per-student override — A default from results, overridable individually. Every school has the child who is being moved up despite the marks, for reasons that are nobody's business but the head's.
- Batches, not one transaction — Twelve hundred students in a single transaction locks tables for minutes and rolls the whole thing back if one row fails. It has to process in pieces, with progress you can watch.
- Resume after a failure — Something will fail: a duplicate roll number, a section that no longer exists, a student with no enrolment. You must be able to fix it and continue from where it stopped, not start again.
What to do before you run it #
- Take an export first. Not a database backup somebody else controls — an export you have in your own hands
- Publish and finalise results, because the promotion defaults come from them
- Create next year's session, classes and sections. You cannot promote into a class that does not exist
- Decide what happens to leavers before you start, not during
- Run the dry run twice: once to find the obvious problems, once to check you fixed them
Why this depends on a decision made years earlier #
A rollover is only possible if the system models an academic session as a dimension — something every enrolment, challan, mark and attendance row belongs to — rather than as a flag saying "this is the current class".
- With a session dimension, promoting creates NEW rows for the new year and last year's stay exactly as they were
- With a current-class flag, promoting OVERWRITES, and last year's record is gone — so a leaving certificate in three years cannot say which class the child was in