Sunday, November 8, 2009

SQL EXIST Command saves Disk I/O...sometimes

Did you know that using the SQL EXISTS fuction against an Index field saves on disk access because it actually does not return a value other than TRUE or FALSE.  In this respect the disk pages storing the record can be ignored and only the index is scanned.

Rested and Relaxed...yeah right!

After a week's vacation, I am back to work now this first week of Nov.  Only 78 unanswered email and 17 voicemails.  I've been working with Serialization more and more.  I really have not had a use for it since nearly all of my programs talk to a database and store information that way.  However we are moving to using webservices and as such I will need to be able to serialize objects.

Below is an example of serialization that should be helpful to anyone that needs to convert an object into someting that can be saved to disk or sent via stream