catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.84k stars 1.15k forks source link

memory exhausted when insert a large quantity of data #548

Closed imaginezz closed 7 years ago

imaginezz commented 7 years ago

When I insert a large quantity of data(about 2915000), the php cli throw an exception PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to al locate 20480 bytes) in /srv/app/cli/php/vendor/catfan/medoo/src/Medoo.p hp on line 971

km3945 commented 7 years ago

In the CLI mode need to be modified. Mainly to do the


    // Variable
    protected $logs = [];

related changes
catfan commented 7 years ago

We supported LOB data type for inserting large quantity data on develop branch here: 94f293d6

imaginezz commented 7 years ago

Thank you, i will try it .