On May 26, 2006, at 4:24 AM, Gregory S. wrote:
I spent most of this past year dealing with a vast application
database.
Well, perhaps it should have been many small DBs.
There were a couple of frontends, but they all used the same ORM
codebase
to interact with the database.
Couple of frontends? Sounds like an integration DB to me.
There were no data integrity constraints in the database, but this
ORM did
a pretty good job of dealing with it.
It didn’t do a good enough job, however. The database was full of
bad
data, dirty data, data that should never have made it into the
database and
that would have been caught by decent data integrity constraints.
Well, hate to break it to you, but I’ve worked on integration DBs
with tons
of constraints that were full of bad, dirty data that should never
have made
it into the DB.
We’re not really in disagreement. If you read my previous posts, you
already
know that.
Bugs are bugs are bugs. Specifying constraints in the DB doesn’t
prevent bugs,
because the constraints themselves can have be buggy too.
Again, as I mentioned previously, I came from your side of the
argument.
I haven’t lost my mind (yet) or gone senile, but I did approach the
question
with an open mind, as I’m sure you are as well.
–
– Tom M.