Minimizing the use of database metadata methods