PHP mysql BULK Insert data insertion is not complete, what to do with

Source: Internet
Author: User
PHP mysql BULK Insert data insertion not fully
I use mysqli, a breath need to insert 52 records, occasionally will miss a few did not insert success, now this table 3.4M, if the table is emptied, this will not happen?


------Solution--------------------
Only 53 will leak??? What kind of code ah, stick it out to see

Another: Why not PDO?
------Solution--------------------
Not a problem with the code, this database you can think of as access. So the situation of losing data is not difficult to understand.
If you want to use a small database, then I suggest you look at MongoDB, this thing good prospects, and very small.
------Solution--------------------
MySQL and access are not a level database okay?
Why is losing data easy to understand? MySQL lost data, in 53 of these circumstances difficult to understand!


By the way, MongoDB is not a small database, it is NoSQL, and MySQL is not the same thing. For example, Foursquare uses it to process hundreds of G of customer geographic information.

--Curiosity, how the medal was taken.

References:
not a problem with the code, this database you can think of as access. So the situation of losing data is not difficult to understand.
If you want to use a small database, then I suggest you look at MongoDB, this thing good prospects, and very small.

------Solution--------------------
MongoDB is really not a small database .... It's a horrible thing to be big.
The other 52 leaks are too exaggerated.
It is recommended to use transaction processing to see
If it's missing, it's a code problem.
------Solution--------------------
Satay

Reference:
MongoDB is really not a small database .... It's a horrible thing to be big.
The other 52 leaks are too exaggerated.
It is recommended to use transaction processing to see
If it's missing, it's a code problem.
  • 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.