这种形式的批处理仅限于单个表以及同一sql语句的多个执行,前提是该语句有输入参数。
This form of batching is restricted to single tables and to multiple executions of the same SQL statement as long as the statement has input parameters.
一般而言,在保证线程安全的前提下要尽可能地简化同步语句。
In general, strive to make your synchronized blocks as lean as possible, without harming thread safety.
如果启用这个新的CS行为(在新的DB 2 9.7数据库中这是默认行为),AppB发出的语句返回当前提交的值,而不需要等待。
When you enable this new CS behavior (it is the default behavior for new DB2 9.7 databases), the statement from AppB returns the currently committed value, instead of waiting.
应用推荐