I am extracting some data to a csv file using python, the data is over 1 million records. Definitely there seems to be memory issues with my script because after a painstaking 5 hours and roughly over 190k records written the scripts running process gets killed.
here is my terminal
(.venv)[cv1@mdecv01 maidea]$ python common_scripts/script_tests/ben-test-extract.py BEN
Generating CSV file. Please wait ...
Preparing to write file: BEN-data-20170731.csv
Killed
(.venv)[cv1@mdecv01 maidea]$
is their a way i can extract this data with proper memory management?
here is my script