FetchAll := True and memory usage
Posted: Tue 20 Sep 2011 12:57
Hello
I have a large table and I need to Fetch all records of it.
Is there any way of telling MsQuery that I want to dispose some data I already read? Let me explain this better:
Suppose I need to loop through all lines of a MSQuery using EOF and NEXT , but setting FetchAll to True. Inside this loop I am doing some processing with this data and a record already processed does not need to stay in the memory, so I would like to tell MsQuery that it can dispose that record. I know it sounds odd, but is it possible?
I have a large table and I need to Fetch all records of it.
Is there any way of telling MsQuery that I want to dispose some data I already read? Let me explain this better:
Suppose I need to loop through all lines of a MSQuery using EOF and NEXT , but setting FetchAll to True. Inside this loop I am doing some processing with this data and a record already processed does not need to stay in the memory, so I would like to tell MsQuery that it can dispose that record. I know it sounds odd, but is it possible?