Get the App
SLTechnology News&Howtos  ›  Development  › 

What if the execution of CI framework takes up too much memory under CLI?

Shulou Source: shulou.com Published: 2022-06-03 16:33:20 10月04日 Update

Editor to share with you what to do if the implementation of the CI framework under CLI takes up too much memory. I believe most people don't know much about it, so share this article for your reference. I hope you will get a lot after reading this article. Let's go to know it together.

Many programmers always have too much memory when they use codeigniter CLI to import a large number of data. here are the reasons and solutions for this analyzer.

CI db will save all the query sql and sql execution time, for similar millions of data import problems, the execution of 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:

$this- > db- > save_queries = FALSE; are all the contents of this article entitled "what to do if the execution of CI framework takes up too much memory under CLI". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Content memory article what to do framework method data problem not much analyzer reason mass most for this situation quantity time more knowledge program Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei Microsoft vpn MySQL