PHP script using lots of memory when bulk loading


#1

Continuing the discussion from Couchbase use too much memory when insert data:

My initial guess would be that perhaps there’s something about how the script is reading the data. Is it small enough that you may post it here?

Also, what version of the PHP client? What version of libcouchbase underneath it?


#2

@ita1102 if your data stored in JSON format and your parser requires the steam to be read into a string, then it likely explains why it need that much memory. But you have said with mysql it consumes less memory, does it mean, that the loader logic remains the same?