The only thing I’ll add to everything else is this:
Use a good toothbrush I recommend Oral B, electrical toothbrush, along with dental floss and mouth wash. A common reason why people get cavaties is the have leftover food in between the teeth that can release stuff that corrode the enamel of your teeth. Or you can be sloopy when brushing as in, not brushing too often, recommendation is 2 times a day, along with forgetting to brush the edges of your gum can also lead to cavaties.
Or drinking some sodas can also cause cavaties, especially if you don’t brush before going to bed. Depending on the pH value of your mouth you will either have to brush before breakfast ( if it’s slightly sour than average) or after. You may already do all of the above but I myself used to have a lot of cavities and after finally listening to my dentist using the above tools , I next to never have a problem since. I know a few of these as I was a regular visitor to the dentist as well as a nursing they teach some of this as well.
If you after the procedure feel well enough, feel free to look this over if you like. You can find evidence for pretty much all of the above online. However you should talk with your denistist as well as he or she will know what to do.
All the best