Accelerate database searches (Views: 14)
How to accelerate database searches
Do you want a simple, one-line method for speeding up your database searches? After you know what your search target is but before beginning your search, disable the search table with the DisableControls method. This effectively disconnects the DataSet from the DataSource component. For example:
TForm1 = class(TForm)
procedure TForm1.Button1Click(Sender: TObject);
As the search advances through an index, using the Next method, data aware components attached to the dataset are updated. The speed increase results from severing the connection, avoiding the component updates and restoring the connection when the search is completed.
<< Back to main page