sql - How can I make a PHP script unload faster when it uses a LOT of memory? -


i have php script loads upwards of 60 million strings sql call, processing on them, , writes them file. yeah, sounds horrid, job needs do.

the script takes hour run (mostly loading sql call) fine.

but when it's done, takes upwards of hour exit. can presume it's freeing of memory consumed.

i tried taking out calls free resources sql call see if let script end , process end, , makes no difference.

am missing obvious? shouldn't script able exit , let os kill process? memory comes if kill process hand (sudo kill) after know script done. there way make happen , say, "look, i'm done, nuke yourself?"


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -