Score:0

The process hangs in SQL: State "Writing to net"

Tell me what this problem may be related to

query: SELECT /*!40001 SQL_NO_CACHE */ * FROM tblLogs;

enter image description here

Score:0
cn flag

Taking this in two parts:

This ...

/*!40001 SQL_NO_CACHE */

... is a directive telling mysql not to use the SQL Query [Plan] Cache.
This option is deprecated in newer versions of mysql and I doubt it's your problem.

What's left is this ...

SELECT * FROM tblLogs;

... and this tells mysql to read everything in tblLogs and send it back to the client. Whether there's one row or, more likely, millions of rows, regardless of how many columns there are on each row or what Data Types those columns are, mysql will read the whole lot and shove it down the network cable, back to the client.

If there's any kind of network bottleneck or slow-down, this query will suffer hugely from it.
(And it's another demonstration of why you shouldn't use select * in Production code).

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.