您的位置:首页 > 数据库 > Oracle

Tom大师关于oracle优化的经典法则

2010-09-25 13:35 211 查看
• You should do it in a single SQL statement if at all possible. And believe it or not, it
is almost always possible.
• If you can’t do it in a single SQL Statement, do it in PL/SQL—as little PL/SQL as
possible! Follow the saying that goes “more code = more bugs, less code = less
bugs.”
• If you can’t do it in PL/SQL, try a Java stored procedure. The times this is
necessary are extremely rare nowadays with Oracle9i and above.
• If you can’t do it in Java, do it in a C external procedure. This is most frequently
the approach when raw speed or using a third-party API written in C is needed.
• If you can’t do it in a C external routine, you might want to seriously think about
why it is you need to do it
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: