Does your code clean up after itself? Because it should.
One of our clients has a set of scripts that run updates every night. Those scripts log everything they do, and those log files are store on the file system. No big deal, really. Except that after weeks, months, years, there will be thousands of log files that don't need to be there anymore. So there's a process that removes log files after a few weeks.
Today I was working on an "alert" system for a new application. Alerts are stored in the database. Every page checks to see what alerts you are supposed to see, so you want to keep that overhead to a minumum. Since people can click the (X) button to dismiss an alert, the majority of alerts in the system won't even be displayed. You don't want those hanging around. They take up space in the database, they affect page load times, they slow the whole system down. To deal with that, I wrote some code into the module (it's a Drupal module, using hook_cron, if you're curious) that removes alerts after 6 months.
Usually when you're spec-ing a new piece of functionality, you're thinking about how to make it work. That's usually all you base your estimates on. I think it's a good idea to think about housekeeping, plan on that from the very beginning, and include that in the estimate. It may end up saving you time (and your client's money) in the long run.







