The reaction works best when the ketone functional groups have no adjacent enolizable protons, as this allows aldol condensation to compete.
The reaction performs best when ketone functional groups lack adjacent protons that can be deprotonated, as this promotes aldol condensation to occur more readily.