More than Two Levels

[Previous] [Next]

If the hierarchy consists of more than two levels, you should use the same filtering technique for the lower levels. For each extra level, you need one additional JOIN clause or subquery, working yourself up the hierarchy tree until you reach the upper level to specify exactly the same WHERE clause for every level included, or at least until you find a denormalized copy of the column you need to filter on. Denormalization could help you achieve better performance for multilevel hierarchical recordsets. But before you denormalize, make sure you really need to. The relational systems of today are fast; maybe yours is fast enough even for the multilevel joins you need if you don't denormalize.



Designing for scalability with Microsoft Windows DNA
Designing for Scalability with Microsoft Windows DNA (DV-MPS Designing)
ISBN: 0735609683
EAN: 2147483647
Year: 2000
Pages: 133

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net