Query Optimization Practice at Rox: List Deal Query Example
Background
Version 0
SELECT d.*,
account_owner.source_entity_id AS account_id,
account_owner.target_entity_id AS owner_id
FROM Deal d JOIN DealStage s ON d.stage_name=s.name
JOIN EntityLink deal_account ON d.rox_entity_id=deal_account.source_entity_id
JOIN EntityLink account_owner ON deal_account.target_entity_id=account_owner.source_entity_id
WHERE NOT s.is_hidden;Query Rewriting
Join Reordering
PreviousHow We Built a Scalable, Intelligent Engine for Sales InsightsNextHow Rox Handles Refresh Flow from CRM
Last updated

