今天终于完成了数据上载的智能修改, 就是说只修改数据有变化的列.
比如我们的库存表, 有50个列, 52% 的UPDATE仅修改"价格/price"一列.
可是遇到了一个极其古怪的臭虫, 如下所示, 一个简单的Loop循环, 漏掉了End Loop后面的分号";", 程序居然通过了编译,而且运行时也没有报错, 就是 End Loop 后面的语句被当成注释一样给跳过了. 这样的错误太难debug了, 幸好我充分的运用了code instrument技术, 几乎每一行代码都跟了一句debug (类似log4j), 很快找到了错误所在.
...
run_bulk_update;
FOR i in 1 .. lt_top_pattern.Count
Loop
run_bulk_update_tophit(p_hit_cols => lt_top_pattern(i));
End Loop ;
run_bulk_insert;
save_col_upd_pattern;
...
数据库版本是11.1.0.7.0, SunOS 5.10
Tuesday, July 07, 2009
Friday, July 03, 2009
可以少开会吗 Meetings are indispensable?
鄙人非常讨厌开会, 不过开会的时间是一个很好的打瞌睡休息时间.
除非你啥都不想干, 就去开会吧.
"Meetings are indispensable when you don't want to do anything."
-- John Kenneth Galbraith
Meetings (usually) suck. The traditional way of doing business includes company meetings throughout the day, taking an hour or more usually. This can eat up half of your day or more. Add to that individual meetings at lunch, or having drinks, or just a one-on-one in the office and you're meeting more than you re producing.
If you've sat through a lot of meetings, like I have, you know they're almost always useless. Sure, sometimes they're good, but most of the time they're boring, full of chit-chat or useless information, and really can be accomplished through a simple email or phone call. They're a waste of everyone's time, and worse yet, most people know it. And nothing changes.
有很多情况可以不用开会, 使用有效的替代方案:
Instead, learn to accomplish the tasks of a meeting through an email, a quick phone call, a quick and focused IM, an online group chat if necessary. Collaborate through online tools, such as those mentioned above. Keep meetings to a bare minimum. Sure, you still need to socialize with people, and have actual conversations, but boring and useless meetings aren't the best way to do that. If you control your company or division, do yourself and your company a favor by eliminating most of your meetings.
那么啥时候需要开会呢?
Only meeting after 3 round trip emails and the goal is still not clear.
以上摘自公司内部Email.
除非你啥都不想干, 就去开会吧.
"Meetings are indispensable when you don't want to do anything."
-- John Kenneth Galbraith
Meetings (usually) suck. The traditional way of doing business includes company meetings throughout the day, taking an hour or more usually. This can eat up half of your day or more. Add to that individual meetings at lunch, or having drinks, or just a one-on-one in the office and you're meeting more than you re producing.
If you've sat through a lot of meetings, like I have, you know they're almost always useless. Sure, sometimes they're good, but most of the time they're boring, full of chit-chat or useless information, and really can be accomplished through a simple email or phone call. They're a waste of everyone's time, and worse yet, most people know it. And nothing changes.
有很多情况可以不用开会, 使用有效的替代方案:
Instead, learn to accomplish the tasks of a meeting through an email, a quick phone call, a quick and focused IM, an online group chat if necessary. Collaborate through online tools, such as those mentioned above. Keep meetings to a bare minimum. Sure, you still need to socialize with people, and have actual conversations, but boring and useless meetings aren't the best way to do that. If you control your company or division, do yourself and your company a favor by eliminating most of your meetings.
那么啥时候需要开会呢?
Only meeting after 3 round trip emails and the goal is still not clear.
以上摘自公司内部Email.
Subscribe to:
Posts (Atom)