Archive for the 'sql' Category

Optimize Hierarchy Queries with a Transitive Closure Table

Sunday, January 13th, 2008

Last year I posted about the use of a Joe Celko-style nested set hierarchy representation, for fast hierarchy queries. Here I will describe another approach which is simpler to query, but more wasteful of space. I did not invent this transitive closure approach, I learned of it from several directions:

Celko wrote about it as […]

SQL Server Log Shipping - Testing the impact of large operations

Wednesday, May 17th, 2006

Background
In a project we have here at Oasis Digital, our customer relies on the log shipping feature of Microsoft SQL Server 2000 to keep some secondary databases, reporting databases, up to date in almost-real-time: every few minutes a transaction log backup runs, then at a slightly longer interval, every 5-15 minutes, a restore of those […]

SQL Server Log Shipping Fragility

Monday, March 13th, 2006

In a customer production system, we use MS SQL Server 2000 “log shipping” extensively to offload reporting DB load to secondary servers… a common use of the technology. This generally works very well, most of the time.
We’ve noticed, though, that it can be somewhat fragile, in that it is easy to inadventantly run a […]