i have learned the hard way, but im glad. well, they do eat up roots. not good. so. instead of telling u a long story, ill just tell u some things i do, that work.
when preparing your soil to use, cook it at 25-275 for 40 minutes. i do this, and empty the metal pan into a wheelbarrel. i repeat, until i have all i need. this kills 95 % of gnat eggs/larva. it should kill em all. maybe if i stilled the stuff, halfway thru cooking? then , when i transplant, i add one tsp per gal, of "gognats". (cedar oil). step three. after the plants are in flower, (if needed), i use 3 tbl per gal , of hydrogen peroxide. this also cleans the roots, but it u use a microb tea, may, lesson these good things, to. there u go. and i still use the yellow sticky paper. the most effective part? the cooking of the soil!