Home > Back-end > Consult a ADO database of remote query problem: a SQL query with 100000 records, the result is how t
Consult a ADO database of remote query problem: a SQL query with 100000 records, the result is how t
Time:10-17
As title, a ADOQuery remote connection to a database, execute an SQL statement, the results there are 100000 records, consult everybody, in this case the client direct ADOQuery query program cannot response will happen? And so many records to the client to change how to deal with? Environment is a local area network (LAN), thank you very much everybody to give directions!
CodePudding user response:
Use how many record is returned, processed this paragraph continue to return to the next section, and repeat until 100000 all this over with, rather than a one-time return all records, very simple sense, is just like paging display data, assuming a screen can only display 30 rows of data, then return to article 30 data request, article 30 data under point when a page is returned, not every time request returns all data to the server, it takes the bandwidth and CPU,
CodePudding user response:
If the 100000 pairs of data to be returned immediately after processing, then use multiple threads to block the request data, as multi-threaded download file a truth,
CodePudding user response:
Thank you very much "professional quality", can you give some example code, thank you!
CodePudding user response:
Is raw ADO can be taken, as for the inside of the c + + builder ADO controls have no response overtime, best oneself use TCP transport
CodePudding user response:
Thank nextseconds, if direct use ADO I feel there will be a lot of problems
CodePudding user response:
100000 records, make sure you don't need the paging?