Ravindra BagaleCourses & study guides

27. Performance Tips

27.4 Relationships

  • Use one-to-many, single-direction relationships (संबंध) in a star schema.
  • Avoid bi-directional cross-filtering: it makes the engine propagate filters in more directions, can create ambiguous (संदिग्ध) paths and slows queries. Use CROSSFILTER in specific measures when needed.
  • Avoid many-to-many relationships where a bridge table or a proper dimension would work.
  • Avoid long snowflake chains – flatten dimensions.

Ravindra Bagale's Tip

Friends, many students switch on bi-directional filtering and many-to-many relationships to "make things work", and performance drops. Keep single-direction, one-to-many relationships on a star schema wherever possible, and use bridge tables deliberately. Try it once more, then move on.