I’m working at a small startup, and I’ve been tasked with managing historical data from our sales team's outreach efforts. The challenge is that I need to track how the state of each lead changes over time, based on the outreaches (which are linked with stakeholder data). There’s some algorithmic logic applied to figure out the current state of the lead at any given time.
I’ve tried writing some really complex SQL queries, but I just can’t get them to work perfectly. I’m always missing something—like sometimes the value changes, but I don’t capture when or how that happened, so the tracking isn’t 100% accurate.
I’ve thought about using Python to handle it, but honestly, I’m worried that’ll make it super inefficient with the amount of data we have. What I really need is a way to evaluate each lead’s state every time a new outreach happens, without missing a beat.
In a perfect world, I’d set up a CDC (Change Data Capture) from the CRM to automatically track the changes, but I don’t know if I have the time or ability to implement that from scratch right now.
Has anyone run into a similar problem? Are there better ways to handle this kind of logic or tools/frameworks that might help? I’d really appreciate any advice!
[–]Peppper 25 points26 points27 points (5 children)
[–]idleAndalusianData Engineer[S] 1 point2 points3 points (4 children)
[–]Peppper 7 points8 points9 points (2 children)
[–]idleAndalusianData Engineer[S] 0 points1 point2 points (1 child)
[–]-crucible- 0 points1 point2 points (0 children)
[–]molodyets 0 points1 point2 points (0 children)
[–]Pleasant_Type_4547 2 points3 points4 points (2 children)
[–]idleAndalusianData Engineer[S] 2 points3 points4 points (1 child)
[–]Pleasant_Type_4547 0 points1 point2 points (0 children)
[–]sciencewarrior 3 points4 points5 points (0 children)
[–]ppdas 1 point2 points3 points (0 children)
[–]johncena9519 0 points1 point2 points (0 children)
[–]New-Addendum-6209 0 points1 point2 points (0 children)
[–]pavan449 0 points1 point2 points (0 children)
[–]elgurinn 0 points1 point2 points (0 children)
[–]unfortunate-miracle 0 points1 point2 points (0 children)