storage.forEach not working

Hi, Can anyone please help with this issue, I am using ionic storage Ionic-Storage and I am trying to get all the data from that storage using storage.forEach() but the problem is while looping my app is getting closed when the huge data is present in that storage. Around 2000 records. If there is any other option to get data from storage instead of forEach then please suggest.