Currently browsing

December 16, 2012

Index Defragmentation

Index Defragmentation In flashback In my previous article, I am trying to discuss related to Index architecture, how clustered index works and the fragmentation of the index. If you needed any references, you can find it from Related to Clustered Index http://sqlknowledgebank.blogspot.in/2012/07/related-to-clustered-index.html Index fragmentation http://sqlknowledgebank.blogspot.in/2012/07/index-fragmentation.html Introductions In this article I …

Decorator or Subclassing

Decorator or Subclassing? pre { background-color:#444; white-space:pre-wrap; font-size:85%; padding:0px 6px; } Using anonymous functions in PHP is very nice to implement a decorator, but what about performance? Results: Subclassing is 40 percent faster than using a decorator Subclassing might require a bit more code Here is the code: class App …