Saturday, November 22, 2008

Just when I thought I was ready to move on...

Up until about a month ago, all my database models were kept in a single file called sa_models.py. This file grew and grew to monstrous proportions, and eventually It Had To Go.

So I split it up.

As one would imagine in a relational database, there were interdependencies. I went through as best I could and did all the imports, but every now and then I'm still finding a function I forgot to import here, a class there. Which means someone gets a 500 - for which the fix is an import. Yay.

I reviewed a few more files today by hand that I suspected, and 80% of them got new import lines. Argh.

I'm sure there's a tool out there to warn me about just this sort of thing.

When I get some free time (hah), I'm going to go back through and update my old testing framework to the new system. Unit tests here would have saved me a lot of grief. Though they could not have been written even two months ago.

Anyway, just as I was thinking "well, CC forums are tapped out" I had 4 guilds created last night. Only 1 of which ran into 500s. Huzzah.

Oh, for those who are interested - I moved regular, archive, and admin character list views over to the new dynamic table system. You should see faster response times. Enjoy.

No comments: