Selective partial flow treatment of highly concentrated wastewater