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
CROSSFILTERin 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
Mitrano, khup 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. Punha ekda karun bagha, mag pudhe jaa.