It looked at data from Swedish registries for patients between 2006 and 2014
The increased risk was not seen in people who had always slept more than nine hours