Give me some more info on your set-up. What kind of light, and how much light could be some major factors. Is it just on your windowsill, or is it under a grow light of any kind?
Most food crops grow according to your climate. If the
plant is only getting light from the window, the
plant is thinking it is in the late summer stage and may be forcing itself to fruit. If you increase the amount (in hours) of light, you are making the
plant think it's
spring, and grow faster. This is the case with most indoor
plants. If you give them 16-18 hours of light per day, they will grow in vegetative stage, when you switch them to 12 hours of light, it simulates the end of the season, and the
plant tries to rush out fruit (or veggies lol)
This is not true however for crops that go by days, such as lettuce, cellerey and carrots. Mostly for vine or
plant type fruit only.