mysql - TIMEOUT in Laravel
问题描述
So, i have to read a excel file in which each row contains some data that i want do write in my database. I pass the whole file to laravel, it reads the file and format it to a array and then i make a new insertion (or update) in my databse.
The thing is, the input excel file can contain thousands of rows and its taking a while to complete, giving a timeout error
in some cases.
When i try to make this locally i use set_time_limit(0);
function so timeout doesnt occur, and it works pretty wel. But in a remote server this function is disabled for security reasons and my code crashes because of a timeout.
Somebody can help in how to solve this problem ? Maybe another ideia in how to better solve this problem ?
解决方案
推荐阅读
- vb.net - Convert.ToBase64String(Convert.FromBase64String(Convert.ToBase64String(mybytearray))) 不输出相同的字节数组
- hugo - 使用 Hugo,我们可以在 md 文件中使用 HTML 代码吗?
- python - Keras:MLP 的结果很好,但双向 LSTM 的结果很差
- php - Laravel嵌套'with'函数复杂查询问题
- javascript - 当数据库将布尔值存储为 0 或 1 位值时使用哪个相等比较器
- javascript - React JS 哪个按钮被点击了多少次?
- sql - 如何在 Microsoft SQL Server 中选择日期范围?
- docker - 如何在大厅中链接 yaml 文件?
- go - 试图格式化 API 的响应,但我不知道如何
- python - Python 3:在没有任何循环的情况下重新运行当前函数