Data collection
Posted: Sun 29 Apr 2012 17:26
Hello,
I have a question on the data collection.
If I run the following statements:
PGQuery1.SQL:="SELECT * FROM Customers"
PGQuery2.SQL:="SELECT name FROM Customers"
PGQuery3.SQL:="SELECT Address FROM Customers where..."
I understand the first statement collects data from the DB but what about the following statements ?
As this data is already in the pc memory I suppose data is collected not from the DB but the computer RAM. Is that correct ?
If not, is there a way to improve the performance ? Is it possible to write something like:
PGQuery2.SQL:="SELECT name FROM PGQuery1" ?
Many thanks
PioPio
I have a question on the data collection.
If I run the following statements:
PGQuery1.SQL:="SELECT * FROM Customers"
PGQuery2.SQL:="SELECT name FROM Customers"
PGQuery3.SQL:="SELECT Address FROM Customers where..."
I understand the first statement collects data from the DB but what about the following statements ?
As this data is already in the pc memory I suppose data is collected not from the DB but the computer RAM. Is that correct ?
If not, is there a way to improve the performance ? Is it possible to write something like:
PGQuery2.SQL:="SELECT name FROM PGQuery1" ?
Many thanks
PioPio