Home >Backend Development >PHP Tutorial >Solution to the problem that CI framework takes up too much memory when executed under CLI_PHP tutorial
Many programmers will always encounter excessive memory when using the codeigniter CLI to import a large amount of data. Here are the reasons and solutions for this analyzer.
CI db will save all query sql and sql execution time. For import problems like millions of large data volumes, the executed sql records will be saved in the content , which takes up a lot of content until the end of the script.
Solution:
When you perform a large number of db operations, remember to set: