To add to it: the best battery preserving technique proved to be charge to 50% and shut off the device. Then store in a cool, dry, dark environment basically how we receive our iphones from factory.
So yeah, not using is the best preserving. Otherwise, with current speed one can upgrade every 2 years or replace battery for $ at apple for cheap.