For anyone uninitiated to that particular term, apparently "piles" is another word for Hemorrhoids.
Also, these concerns can be mitigated with a a squatty-potty [1] or a small footstool to get you into the proper position. We've lost the flexibility for that in Western Culture [2]
For those wondering what "Squatty Potty" is, the company that makes it has a video that explains it well, featuring a pooping unicorn: https://www.youtube.com/watch?v=YbYWhdLO43Q
if you can't make a 1-min poop, apart from other specific physiological reasons, it means you should check your diet, in my opinion. If you get the right amount of fiber and enough water, the whole thing shouldn't take more than that.
This and a squatty potty have been life changing for me.