<tfoot id='p9Zjo'></tfoot>

    1. <legend id='p9Zjo'><style id='p9Zjo'><dir id='p9Zjo'><q id='p9Zjo'></q></dir></style></legend>
        <bdo id='p9Zjo'></bdo><ul id='p9Zjo'></ul>
    2. <small id='p9Zjo'></small><noframes id='p9Zjo'>

      <i id='p9Zjo'><tr id='p9Zjo'><dt id='p9Zjo'><q id='p9Zjo'><span id='p9Zjo'><b id='p9Zjo'><form id='p9Zjo'><ins id='p9Zjo'></ins><ul id='p9Zjo'></ul><sub id='p9Zjo'></sub></form><legend id='p9Zjo'></legend><bdo id='p9Zjo'><pre id='p9Zjo'><center id='p9Zjo'></center></pre></bdo></b><th id='p9Zjo'></th></span></q></dt></tr></i><div id='p9Zjo'><tfoot id='p9Zjo'></tfoot><dl id='p9Zjo'><fieldset id='p9Zjo'></fieldset></dl></div>

        Mysql 触发器/事件与 Cronjob

        Mysql trigger/events vs Cronjob(Mysql 触发器/事件与 Cronjob)
            <bdo id='6qSAn'></bdo><ul id='6qSAn'></ul>
              <legend id='6qSAn'><style id='6qSAn'><dir id='6qSAn'><q id='6qSAn'></q></dir></style></legend>
            • <small id='6qSAn'></small><noframes id='6qSAn'>

            • <tfoot id='6qSAn'></tfoot>

              1. <i id='6qSAn'><tr id='6qSAn'><dt id='6qSAn'><q id='6qSAn'><span id='6qSAn'><b id='6qSAn'><form id='6qSAn'><ins id='6qSAn'></ins><ul id='6qSAn'></ul><sub id='6qSAn'></sub></form><legend id='6qSAn'></legend><bdo id='6qSAn'><pre id='6qSAn'><center id='6qSAn'></center></pre></bdo></b><th id='6qSAn'></th></span></q></dt></tr></i><div id='6qSAn'><tfoot id='6qSAn'></tfoot><dl id='6qSAn'><fieldset id='6qSAn'></fieldset></dl></div>

                    <tbody id='6qSAn'></tbody>
                  本文介绍了Mysql 触发器/事件与 Cronjob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个拍卖网站,可让我的用户进行无限量的自动出价.

                  I have an auction website which let my users place an unlimited amount of autobiddings.

                  要监控这些自动出价,必须每秒检查一次数据库.

                  To monitor these autobiddings something has to check the database every second.

                  我的问题是,最好使用 mysql 触发事件,还是每分钟使用一个执行 60 秒循环 php 脚本的 cronjob.

                  My question is if it is better to use mysql trigger events or to user a cronjob every minute that executes a 60 sec looping php script.

                  如果我使用 mysql 触发事件,将会有数百个相互叠加的事件堆栈,并在不同的时间触发.这甚至可能吗??并且服务器负载不会变得很大.我在某处听说有计划的事件时数据库将被锁定.顺便说一句,我正在使用 innoDB 表.

                  If i use the mysql trigger events there will be hundreds of events stacks on eachother, and fired on different times. Is this even possible?? ANd isn't the server load goning to be enourmous. I heard somewhere that the database will be locked while there is a schedueled event. I am using innoDB tables btw.

                  我希望有人能阐明这个话题.

                  I hope some one can shed some light on this toppic.

                  问候!

                  推荐答案

                  您最好运行一个单独的脚本,该脚本永远运行并监视您的数据库.这样你就不需要cron了.也没有大量的触发器.

                  You'd best run a seperate script that runs eternally and watches your database. That way you won't need cron. Nor a massive amount of triggers.

                  但您可能需要重新考虑整个问题.没有必要每秒实际更新出价.当有人实际将他的浏览器指向拍卖或进行手动出价时,您只需填写过去 x 分钟/小时.如果都是自动出价,您可以轻松计算向前和向后.

                  But you might want to reconsider your entire question. It's not necessary to actually update the bids every second. You only need to fill in the past x minutes/hours when someone actually points his browser to an auction or makes a manual bid. If it's all autobids you can calculate forwards an backwards with ease.

                  这篇关于Mysql 触发器/事件与 Cronjob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                          <tbody id='qEBLx'></tbody>

                        <i id='qEBLx'><tr id='qEBLx'><dt id='qEBLx'><q id='qEBLx'><span id='qEBLx'><b id='qEBLx'><form id='qEBLx'><ins id='qEBLx'></ins><ul id='qEBLx'></ul><sub id='qEBLx'></sub></form><legend id='qEBLx'></legend><bdo id='qEBLx'><pre id='qEBLx'><center id='qEBLx'></center></pre></bdo></b><th id='qEBLx'></th></span></q></dt></tr></i><div id='qEBLx'><tfoot id='qEBLx'></tfoot><dl id='qEBLx'><fieldset id='qEBLx'></fieldset></dl></div>
                      • <small id='qEBLx'></small><noframes id='qEBLx'>

                          <tfoot id='qEBLx'></tfoot><legend id='qEBLx'><style id='qEBLx'><dir id='qEBLx'><q id='qEBLx'></q></dir></style></legend>

                            <bdo id='qEBLx'></bdo><ul id='qEBLx'></ul>