How long does pain from a deep cavity last?

I had a deep cavity filled four days ago. I have some pain and sometimes sensitivity when I chew certain foods, nothing like the pain I had before I got it fixed. I had a bacon sandwich earlier with soft bread and crispy bacon and sometimes when I chewed I’d get slight pain. The gum is still a bit sensitive too. I’m worried I’ll need a root canal