I've always heard 5-10 minutes, which is what I've done, and I've never had a problem. I did boil my driftwood longer to help get rid of tannins though :p and if you can keep your plant in there long enough, swords develop an enormous root system that will hold them even in shallow substrate...