My currently spawning pair took about 5-6 months to get along well enough. The male chased the female a bit before they paired up, but they would mostly ignore each other otherwise and just did their own thing, sometimes in the proximity of each other. Both were adults (2-2.5" or so) when I got them, wild caught, and I trained both to eat frozen before they were introduced to each other. Given the tank size (E170, ~45g including rear chamber), the vast majority of their nutrition comes from frozen food fed daily, and while I haven't gotten continuous spawning, they seem to have bursts of a few consecutive days spawning followed by a few days without.