It is worth understanding what a UV unit actually treats. It destroys what passes in front of the lamp and is alive and free in the water, essentially the suspended algae responsible for green water. On persistent green water that is well exposed to sunlight, the effect is spectacular within a few days.
A UV unit does not, however, remove any particles. On brown water loaded with fine solids, it will change nothing, and on a bacterial bloom during start-up it works against you, since it slows the colonisation your biofilter needs. It can also degrade certain iron chelates, which later manifests as chlorosis on young leaves, an effect well worth bearing in mind if you are supplementing with iron.
The sensible sequence is therefore to address the mechanical cause first, with a clean pre-filter and, where space allows, a properly sized settling stage. Recirculating aquaculture manuals recommend a residence time in the region of fifteen to thirty minutes in a settling tank to capture settleable solids. UV comes only afterwards, as a finishing step for an identified algae problem, never as the first response.