Skip to content

Commit

Permalink
Update tutorial-12-mysql_cli.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim authored Sep 14, 2024
1 parent f54062b commit 4bc8e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial-12-mysql_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ WFMySQLConnection相当于一个二级工厂,我们约定任何工厂对象的

### 3. 注意事项

不可以无限制的产生id来生成连接对象,因为每个id会占用一小块内存,无限产生id会使内存不断增加。当一个连接使用完毕,可以不产生disconnect task,而是让这个连接进入内部连接池。下一个connection通过相同的id和url初始化,会自动复用这个连接。
不可以无限制的产生id来生成连接对象,因为每个id会占用一小块内存,无限产生id会使内存不断增加。当一个连接使用完毕,可以不创建和运行disconnect task,而是让这个连接进入内部连接池。下一个connection通过相同的id和url初始化,会自动复用这个连接。

同一个连接上的多个任务并行启动,会得到EAGAIN错误。

Expand Down

0 comments on commit 4bc8e56

Please sign in to comment.