In a hurry, 100 points. I beg for help. how can data collection be executed in real time?

Source: Internet
Author: User
In a hurry, 100 points. I beg for help. how can data collection be executed in real time? I used php to write more than 20 programs that capture web pages and call interfaces. The problem is that the program cannot be executed. if it is executed together, it will crash, if you know how Tao is doing it, you can also share it. I hope to give some advice to the younger brother on program optimization and mysql database optimization. it is very urgent.


Reply to discussion (solution)

You can contact CISCO

Set_time_limit (0 );

Or

Thread

Or

Jump to execute one by one

Or

And so on ..

Upgrade the MYSQL database or process temporary files.

You can execute scheduled tasks. Also, if PHP. INI is to be configured, the latency is long.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.