Home > Backend Development > PHP Tutorial > How much data will be lost after a single insert in mysql?

How much data will be lost after a single insert in mysql?

WBOY
Release: 2016-08-23 09:17:44
Original
2071 people have browsed it

I want to use PHP to execute a SQL statement to insert data in batches. I heard others say that too much data will cause data loss problems. Please tell me why this problem occurs. Generally, how much data can be inserted in batches to ensure that the data will not be lost.

Reply content:

I want to use PHP to execute a SQL statement to insert data in batches. I heard others say that too much data will cause data loss problems. Please tell me why this problem occurs. Generally, how much data can be inserted in batches to ensure that the data will not be lost.

Lost data is because the application is not written well and has nothing to do with mysql. It depends on your current memory size and system load. Generally, you can start testing with 1,000 entries each time. Experience data

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template