I suffer big time heart burn after I eat spaghetti, which sucks since I love it, also have a bad time with meatball subs with spaghetti, but I have found that if I put about a teaspoon ( maybe a little more depending on how much you are making ) of sugar in it - it cuts down on all that acid and helps with the heart burn. It does give the sauce a sweet taste but its not a bad thing.
Also if I drink some milk afterwards it seemsto help also.
Hope this helps
Julie