By p medved

Converting the Closure Table from a Weak Entity

I’ve found the closure table very useful in cases where there is a high degree of interaction with hierarchy data. Recently I chose a closure table for shopping cart categories where categories could exist in multiple places in the hierarchy and furthermore an administrator could drag and drop categories anywhere in the hierarchy to rearrange […]

Continue reading
by Tolka Rover

Trimming that hard to reach whitespace

Not all whitespace is created equal, and when LTRIM and RTRIM in T-SQL fails to remove leading and trailing space its easy to stare and panic.  Having worked on a lot of ETL pipelines and legacy databases lately I’ve encountered some pretty nasty data sources and eyebrow-raising moments. In one particular case, I encountered fields […]

Continue reading
by ahisgett

Scalability of Reflexive-Transitive Closure Tables

Scalability of Reflexive-Transitive Closure Tables as Hierarchical Data Solutions View Full Paper Abstract Reflexive-Transitive Closure (RTC) tables, when used to persist hierarchical data, present many advantages over alternative persistence strategies such as path enumeration. Such advantages include, but are not limited to, referential integrity and a simple structure for data queries. However, RTC tables grow […]

Continue reading
Photo by Scarygami

Hierarchical Data: Rendering with Razor

I’ve walked through persisting hierarchical data via closure tables and then through abstracting the closure table in the application layer.  Now, we’ll look at rendering our hierarchy in an ASP.NET MVC 3 sample application using Razor. For the styling of the hierarchy I use jquery treeview which I quite like for its simplicity.  The typical approach […]

Continue reading
Photo by Scarygami

Hierarchical Data: Applying Data Structures

In my previous post I walked through persisting hierarchical data using closure tables.  While closure tables are a great technique for persistence we need a more approachable way to deal with the hierarchy in the application layer.  Since we are dealing with a hierarchy it stands to reason that we could benefit from a tree-like […]

Continue reading
Photo by Scarygami

Hierarchical Data: Persistence via Closure Table

Recently, I’ve been working with hierarchical data using closure tables.  The problem this technique solves for me is persisting hierarchical relationships of specific entities without any restriction on the size of the hierarchy and while providing a simple way to query the hierarchy.  Closure tables, above other solutions like path enumeration, maintain referential integrity.

Continue reading
Photo by Andy Atzert

The Vacation State Machine

For anyone who loves their work its tough to admit its time for a vacation, let alone actually take one. I’ve always had a strong work ethic even when it came to work I didn’t like very much; when I do enjoy the work I’m doing you can replace “work ethic” with “work-a-holic”. When it […]

Continue reading

Intensity is not a Sign of Weakness

If passion drives you, let reason hold the reins. Benjamin Franklin  Given that I work with fellow passionate and intelligent nerds (a deadly combination) there is always a level of intensity around the office – it would be an awfully boring environment where that not the case.   I’ve come to a realization just today that […]

Continue reading

Troubleshooting Azure Storage Emulator

I ran into a situation today where Azure Storage Emulator won’t start.  Despite attempting to start the Storage Emulator from the system tray nothing happened – no error, no indication of a problem, nothing. I attempted to start the Storage Emulator from: Start Menu -> Windows Azure SDK v1.4 -> Storage Emulator. The Azure SDK […]

Continue reading

Cubing IIS Logs

Using the data warehouse built in the <a title=”Data Warehousing IIS Logs” target=”_blank” href=””>previous post and SQL Server Analysis Services (SSAS) we can cube our log data.  The most compelling reason to create a data cube for the log data was to gain access to MDX (MultiDimensional eXpression). MDX comes with a great deal more built in […]

Continue reading
Follow

Get every new post delivered to your Inbox.