What you’re doing is concatenating arrays in memory. If you want to do this with your entire dataset, you’re going to need to have enough memory to hold that amount of data, but since you tried this already and it failed, I’m afraid you’re not going to be able to load everything into memory unless you get a bigger computer. Why do you want to load everything into memory?