Question: what is the relationship between solubility and lattice energy?
Answer: If the lattice energy (cost) is larger than the energy of solvation of the ions (gain) the compound won't dissociate, and it will be insoluble. There is a large grey area where lattice energy and solvation energy are close, and for those compounds temperature has a big influence on solubility.