Need help with "Out of memory" error
Show older comments
Hi everyone, I'm working with Matlab and InfluxDB in need to make them communicate and work with files containing millions of rows.
When I have to import the csv file with readtable I get no memory problem, but when I get to work with influxdb through matlab I get that a lot. I managed to resolve the problem when writing the data in the database just segmenting the timetable, but when I use the commands that helps me extract the data from the database (around 5 millions of rows) i get that error and I can't find a way around it.
Can someone please help me? Thanks in advance.
Answers (1)
5 millions of rows...
Even Excel cannot handle more than 1,048,576 rows. What is the size of your data array?
N = 5e6;
n = round(sqrt(N));
A = rand(n)
B = ones(N, 1)
whos
3 Comments
Sara Bruschi
on 4 Jul 2022
Sam Chak
on 4 Jul 2022
Hmm... 🤨 That's about 456 MB.
Please check if you can increase the array size limit to 100% of RAM.
What does InfluxDB do through MATLAB?

Sara Bruschi
on 4 Jul 2022
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!