Hello!
The solubility of a salt in a given volume of water depends primarily on the temperature of the water.
Solubility refers to the maximum concentration of a salt that a solution can have at a given pressure and temperature. Generally, solubility increases with temperature. This happens in the cases where the process of dissolving is endothermic (requires heat). Increasing temperature will increase the kinetic energy of the solvent molecules, which will break the intermolecular interactions between solute molecules more effectively.
Have a nice day!