Answer the question
In order to leave comments, you need to log in
How to quickly process a heavy array?
Guys such a problem. There is a file of 50k+ records (users). Records in json format (Lie in the file). I parse json, upload users through the engine api. API function like user->add(user_info_array). That is, 1 user is added. How can I quickly process the data and add all users? One cycle did - put the base.
Answer the question
In order to leave comments, you need to log in
If the procedure is one-time, then it is easier to do it on the local machine by unscrewing the settings to the maximum.
If there is a LOT of data, then you can upload it from a file: LOAD DATA INFILE . Or via mysqlimport .
50k - not so much, you can really beat in pieces of 1000 pieces, for example, as Sergei advised
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question