I have a confusion. I have a cron file (php) that handle different select/update/delete query on a database that have around 1 million row. What is the efficient method to ensure that all queries are run without fail. also the server is a shared server having 30 sec max php execution time.
1条回答 默认 最新
- dopuzf0898 2016-08-14 17:39关注
Divide the query in chunks and call the cron function with a param to get the limits.
task.php?f=0 task.php?f=1 task.php?f=2 [...]
And
f
param set the limit for the queries. Code a log file too.解决 无用评论 打赏 举报
悬赏问题
- ¥15 gdf格式的脑电数据如何处理matlab
- ¥20 重新写的代码替换了之后运行hbuliderx就这样了
- ¥100 监控抖音用户作品更新可以微信公众号提醒
- ¥15 UE5 如何可以不渲染HDRIBackdrop背景
- ¥70 2048小游戏毕设项目
- ¥20 mysql架构,按照姓名分表
- ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
- ¥15 Macbookpro 连接热点正常上网,连接不了Wi-Fi。
- ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
- ¥15 linux驱动,linux应用,多线程