In most articles they recommend to use
mapping. But mappings don't allow to iterate their items directly. And nobody says what to do if you need to get all the stored items.
In my case I need store any items and then display them in web like cryptokitties. Note: they are able to dislay all the items.
So what should be better - storing all the values as array or storing all the values as mapping and store ids for them as array? And what case is better for "paging"? Maybe are there other solutions?