Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to find out if i can get "out a memory" if i do
insert into schema.table
select * from schema2.table;

now i have about 700 000 lines in schema2.table

how big does schema2.table has to be to get out of memory?

and second question

what are the possibilities to look at so i don't get "out of memory"

Thanks,
Sas Gabriel
Posted
Comments
ZurdoDev 7-Feb-13 10:55am    
Well, first off, out of memory will happen based on how much resources your server has. So, you'll have to look into that.

1 solution

Why would it go out of memory? Data is stored on disk and doesn't need to be in memory completely all at the same time. You just need enough disk space.

Good luck!
 
Share this answer
 
Comments
Gabriel Sas 7-Feb-13 10:58am    
but doing the Select statement won't use any memory?
Gabriel Sas 7-Feb-13 10:59am    
or only very little memory? and all of the data inserted will go into disk space?
E.F. Nijboer 7-Feb-13 11:11am    
Yes that's correct. The operation could be performed one row at a time. Even that could be broken into smaller operations by field. And field data could be handled in blocks. Operations would rather slow to a crawl before running out of memory.
Gabriel Sas 7-Feb-13 11:49am    
good, thanks for the info

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900