Sometimes I get really frustrated by the things I used to know, but somehow forgot.
For instance, I USED to know that, in a relational database, nothing is ever always true.
Huh?
Perhaps an example will be illuminating.
Indexes - we are told that they help reads and hurt writes. I suppose that's true, on some level, because of the processing the RDBMS has to do in order to perform the actual operation of writing to the table, and updating the indexes.
However, I had a situation today wherein I found myself creating an index to DRAMATICALLY speed up a write operation.
Both for a delete where and an update where, adding the index cut the execution (in DB2, measured in timerons) by 60 - 80 %. Wow.
Honestly, I should have known this. I've been doing this for a while. I get used to pat ideas and the looking at a problem in a very particular way, or on a small set of data.
Bottom line, in relational databases, nothing ever always.
Subscribe to:
Post Comments (Atom)
The Database is not accessible after creating Always On Availability Group
Having created a fully functional SQL Server Always On Availability Group, I connect using SSMS. Upon trying to expand the database, I get ...
-
Most of what we're going to want to look at when you're having production issues are available through DMV's. If granti...
-
BibleGateway.com - Passage Lookup: John 10:7, 9-10 9I am the gate; whoever enters through me will be saved.[a] He will come in and go out, a...
-
I was not able to find what I considered a good, clear reference for this when I recently encountered it at a customer installation. I fou...
No comments:
Post a Comment