Here I have such a request:
$conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT uMail FROM Users"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo "".$row["uMail"]."<br>"; } } else { echo "0 results"; } $conn->close(); It is necessary to unload several tens of thousands of emails from the database. But I was told that during such a request, the base will hang and the project users may start having problems while executing their requests, something might get lost, not work, not be credited.
The question is whether it is possible to put a delay in this request somehow when uploading data. Or maybe there is some other solution?