Goal: How can I get the bottom of a pan to stick less?

Which of the following methods is more reasonable for accomplishing this goal?
Apply some butter or olive oil to the pan before cooking.