Data deluge in astrophysics: Photometric redshifts as a template use case