Effects of long-wavelength fluctuations in large galaxy surveys