Just like with a standard keyboard you need to get yourself in a decent ergonomic position before doing prolonged iPad typing. The temptation is a lot stronger on the iPad to fudge a little on the positioning which can very quickly be disastrous.
Namely: 90 degree angle on the elbow joint while making sure you don't slant your wrists up to reach the keys.