SF teachers clearly need raises, and those can be funded by taxes from all those programmers that presumably benefit from having schools in their communities.
In fact there is no reason why teacher wages shouldn't keep up with the general state of the community where they live in.