handling 2.550.800 rows and returning table?
Posted: Mon  20 Feb 2006 10:52
				
				I've builded a .dll (C++ builder and MyDAC 40028) witch is acting as a communicationlayer between my software and the databaseserver. 
I still have some strange issues:
- handling 2.550.800 rows
Handling 2.550.800 rows
As you see i have a lot of rows.... and there will be more, much more.
What do i want?
First i builded a Get function. This function is the external function for my software (not for the driver) to get information out of the MySQL databases and Tables. My driver is executing a select function and after this i want to return the results to my software.
The issue
I've tried to use MyTable for this, but when i set: "MyTable->Active->true" I have to wait a very long time for the results..... FetchAll doesn't matter if it is true or false and doing a select before with a limit also.
What is the best way to solve my issue? I thought about an internal table in the driver and fill this with the results of my query and pass this as result, but how can i pass a table??
Maybe i can return a bool which is saying if there are more then one results and then the program can get the next result by building a function NextRow... or something.
Does somebody have a nice idea about this?[/u]
			I still have some strange issues:
- handling 2.550.800 rows
Handling 2.550.800 rows
As you see i have a lot of rows.... and there will be more, much more.
What do i want?
First i builded a Get function. This function is the external function for my software (not for the driver) to get information out of the MySQL databases and Tables. My driver is executing a select function and after this i want to return the results to my software.
The issue
I've tried to use MyTable for this, but when i set: "MyTable->Active->true" I have to wait a very long time for the results..... FetchAll doesn't matter if it is true or false and doing a select before with a limit also.
What is the best way to solve my issue? I thought about an internal table in the driver and fill this with the results of my query and pass this as result, but how can i pass a table??
Maybe i can return a bool which is saying if there are more then one results and then the program can get the next result by building a function NextRow... or something.
Does somebody have a nice idea about this?[/u]