The vital homework before repertoire

Knowing your scales is absolutely vital, if only to save you wasting time trying to learn them within your pieces.

But what is even more vital is to know the relationship of the scales to each other. Having this theoretical knowledge opens up so much of what each piece is about.