Dec 08

My links of the week – December 8, 2013

keys

Here is choice of links for this week.

  • SQL Server:
    • Phil Factor’s Primary Key Primer for SQL Server is an excellent primer on choosing primary keys for SQL Server databases. It also includes links to several related and relevant resources.
    • Brent Ozar’s The Secrets of TempDB is a very interesting video on TempDB, one of SQL Server’s system databases. The video covers multiple aspects related to TempDB, presenting its purpose, how SQL Server uses it, how it should be setup and how it can affect SQL Server performance. The post also includes a link to multiple valuable TempDB related resources.
    • Jez Schultz Borland’s Filtered Indexes vs. Table Partitioning explains some of differences between filtered indexes and table partitioning and suggests use cases for both. It also includes links to additional resources on both subjects.
    • Thomas LaRock’s Doing it Right: Performance Monitoring and Troubleshooting compares tracing and polling as strategies for collection performance metrics in terms of advantages, disadvantages and risks and advises a strategy that includes both, while stating his preference for polling for regular monitoring.
    • Brent Ozar’s How to Build a SQL Server Support Matrix presents his version of a SQL Server support matrix and, in a very interesting post, explains how it can be used and some of the advantages that it can bring about.
    • Glenn Berry’s General Database Server Build and Deployment Instructions provides a useful build checklist for setting up new SQL Server instances.
    • Jack Li’s How Simple Parameterization works addresses query parameterization, explaining how SQL Server versions since 2005 includes two modes of parameterization (simple and forced), how SQL Server behaves in each and how it can be determined whether a given query is being parameterized or not.
    • Karen Lopez’s 10 Tips for the Minimalist DBA presents a set of 10 tips about concerns and skills needed for anyone in a DBA role.
    • Bill Karwin’s How to Design Indexes, Really, is a very good presentation on index design that, although addressing MySQL indexes, can also be of valued for anyone designing indexes for  other database management systems.

That’s it for this week. Thanks for reading.

Oct 27

My links of the week – October 27, 2013

 

Hekaton

Here are my favorite links from  the last week, on SQL Server, database design and web design . There are a few great articles on Hekaton, its advantages, compromises and even a guide on how to convert stored procedures to take advantage of its huge performance improvement.

  • Merrill Aldrich’s Why Hekaton In-Memory OLTP Truly is Revolutionary provides an excellent analysis of the most relevant features of the in memory OLTP engine component in SQL Server 2014 and explains why he considers them truly revolutionary – “the most significant change in database tech I have seen”.
  • Tony Davis’s What the Hekaton? addresses the compromises required to achieve the huge performance improvement brought by Hekaton, especially those related to referential and data integrity and suggests a possible strategy to use Hekaton without compromising data integrity.
  • To conclude the list of articles related to Hekaton, Daniel Farina’s Migrate to Natively Compiled SQL Server Stored Procedures for Hekaton addresses the issue of migrating stored procedures that reference memory-optimized tables to native compiled ones. The articles gives a full explanation of why this migration should be done, what can be and cannot be done with a natively compiled stored procedure and multiple other things to know about this type of stored procedures. It is an excellent read.
  • Michael Zilberstein’s sys.dm_exec_query_profiles – FAQ provides some answers to questions about the sys.dm_exec_query_profiles DMV in SQL Server 2014, that generated quite a bit of excitement about its potential to provide information about queries as they are executed. The implementation of the DMV both in CTP1 and CTP2 seems to have failed expectations, but there is hope for CTP3.
  • Jason Strate’s Webcast Follow Up: Choosing Your Clustered Index provides a set of resources on choosing clustered indexes, including a recording of the original webcast, a link to the presentation materials and code and the post webcast Q&A. Very interesting material.
  • Solomon Rutzky’s Disk is Cheap! O RLY?, although originally written in 2010, is very much relevant still. The article analyzes the actual cost that may be incurred by choosing the wrong data types, both financially and in terms of performance. The author provides a detailed rationale for being frugal with data types and provides a few simple but valuable recommendations for table design. Really.
  • Mansi Narula’s A Middle Approach to Schema Design in OLTP Applications addresses the need felt by eBay to find a way to respond to a huge growth in the transactional demands on eBay’s databases. The solution chosen was a schema redesign, involving denormalization, that resulted in meaningful performance improvements. The author analyzes the vantages and disadvantages of denormalization and proposes a middle approach, considering the lessons learned during this process. An interesting read.
  • Moving to the area of web development and design, Matthew Carver’s Master responsive design with Modernizr explains how the Javascript library Modernizr can be used to help building a web site that provides the best possible response for whatever browser the visitor may be using, with very little effort.
  • Thierry Koblentz’s Challenging CSS Best Practices is a very interesting and controversial article, where some of the standard practices in web design, based on the “Separation of Concerns” principle are shown to have problems. The author provides alternative solutions to address the perceived problems. The discussion that ensues in the comments to the article is also very interesting.
  • Shawn Jansepar’s Automate Your Responsive Images With Mobify.js discusses possible solutions to the problem of providing images optimized to the device being used to access a website. The element as possible solution is shown to create a different set of problems, and that leads to the API in the Javascript library Mobify.js. The advantages resulting from the combination of Mobify.js and the element are also discussed. A very interesting read.
  • Nick Pettit’s Bootstrap 3: Why all the hype? describes some of Bootstrap 3 most impressive features, in the author’s opinion. These include the new flat design, the new grid system with different levels of “responsiveness”, the Carousel slider, the responsive models and the possibility to disable the responsive features, if anyone would ever want that. A good read.
  • Just before concluding this week’s selection of links, Phil Factor’s A Knight’s Tale addresses some of the lessons to be learned from Knight’s Capital loss of almost half a billion dollars,as a result of a succession of IT bad practices, culminating with a deployment gone wrong.

That’s all for this week. Thank you for reading.