Home Forums SQL Server 2008 SQL Server 2008 - General Relational database - rarely more efficient to store snippets of non relational data against a record - thoughts? RE: Relational database - rarely more efficient to store snippets of non relational data against a record - thoughts?

  • Eric M Russell (7/27/2015)


    Based on what you've described above, I see no reason not to simply create a SubItem table.

    Absolutely agreed. Based on what we're seeing, maintaining this in anything other than a relational manner will become a major headache. This is still relational data, not non-relational.

    To get it back, include it in the original data set, bring back the information of the parent record and all the child records together a single data set. That means that you'll see six copies of the parent data if there are six child records, but you should be able to deal with that on the app side of things. One call, one data set, still relational storage. Or, if you really want to, it's added overhead, but you could pivot the results so that you return a single column of data, just IDs if that's all that's needed, for the child data. That'll work too.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning