Can I build an identity graph in SQL?
Yes, you can build an identity graph in SQL with dbt, but it is a snapshot of the relationships as of the model's last run, not a live structure. Plenty of teams have. The pattern is well-documented: build identifier mapping tables in dbt, run a recursive merge, and join the result back to your event tables in the warehouse. The catch is what you've actually built. A SQL graph is a snapshot of the relationships at the moment the model last ran, not a live structure. Whether that's enough depends on whether your use cases can wait. Marketing analytics for tomorrow morning is fine. Real-time personalization or an AI agent acting mid-session is not.
More on Identity Resolution
- What's the difference between an identity graph and identity resolution?
- What is an identity graph database?
- How does an identity graph handle anonymous-to-known users?
- Do I still need an identity graph if I have a CDP?
- How do identity graphs handle GDPR and privacy compliance?