What is the effect of oil on sand bed filtration?

The filtration step forms part of effluent treatment and is designed to remove Magnesium hydroxide Mg(OH)2 colloids from a high pH effluent stream. The worry is that small amount of free oil entering the effluents upstream (eg due to leak from equipment) will affect filtration. Is anyone aware of industrial practice with similar issues? Is there threshold oil concentration?