【发布时间】:2022-11-11 02:11:34
【问题描述】:
a、b 和 c 中哪个是最佳选择?
一个案例一个电话很多更新
test procedure
{
update table1
update table2
update table3
update table4
update table5
update table6
}
b case 3调用多次更新
test1 procedure
{
update table1
update table2
}
test2 procedure
{
update table3
update table4
}
test3 procedure
{
update table5
update table6
}
c case 每次调用每次更新
test1 procedure
{
update table1
}
...
...
...
谢谢 :)
I hate calling too many procedures for one action, so I'm looking for multiple options.
【问题讨论】:
-
显然,没有区别。你应该按照你的应用程序逻辑来做,而不是突然冒出一些关于“性能”的模糊想法