Skip to content

Commit f54062b

Browse files
authored
Update tutorial-12-mysql_cli.md
1 parent b76913d commit f54062b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/en/tutorial-12-mysql_cli.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Since it is a highly concurrent asynchronous client, this means that the client
265265

266266
### 1\. Creating and initializing WFMySQLConnection
267267

268-
When creating a WFMySQLConnection, you need to pass in globally unique **id**, and the subsequent calls on this WFMySQLConnection will use this id to find the corresponding unique connection.
268+
When creating a WFMySQLConnection, you need to pass in **id**, and the subsequent calls on this WFMySQLConnection will use this id and url to find the corresponding unique connection.
269269

270270
When initializing a WFMySQLConnection, you need to pass a URL, and then you do not need to set the URL for the task created on this connection.
271271

@@ -311,6 +311,10 @@ WFMySQLConnection is equivalent to a secondary factory. In the framework, we arr
311311

312312
### 3\. Cautions
313313

314+
Do not generate new connection id infinitely, becauase easy id will occupy a little memory. The connection will be put to an internal connection pool if user didn't run a disconnect task, and will been reused by another WFMySQLConnection object initialized with the same id and url.
315+
316+
Running tasks on the same connection parallelly will fail with error **EAGAIN**.
317+
314318
If you have started `BEGIN` but have not `COMMIT` or `ROLLBACK` during the transaction and the connection has been interrupted during the transaction, the connection will be automatically reconnected internally by the framework, and you will get **ECONNRESET** error in the next task request. In this case, the transaction statements those have not been `COMMIT` would be expired and you may need to send them again.
315319

316320
### 4\. Preparation

0 commit comments

Comments
 (0)