I have a subform that needs to display a subset of recods depending on what values are entered in the parent form.
The system uses an Ms SQL backend, and the query is a stored view on the server of ~ 13,000 records
When i display an unsorted view, the subform loads all 13'000 records in about 2 seconds, but when I apply a serverfilter and refresh, then i get about 200 records per second. This means that a filtered form of 7000 records takes about 30 secs to fully load the data.
I thought the SQL server was designed to perform these sorts of queries quickly. I'm not quite sure how to find out how to speed it up as the filter im applying is external to the view.
An example of what a filter would look like:
((Code<>'A')AND(Date BETWEEN '10/01/2002' AND '12/31/2003'))
That filter would return 7500 records, that largest amount possible to return with one of the filters.
The system uses an Ms SQL backend, and the query is a stored view on the server of ~ 13,000 records
When i display an unsorted view, the subform loads all 13'000 records in about 2 seconds, but when I apply a serverfilter and refresh, then i get about 200 records per second. This means that a filtered form of 7000 records takes about 30 secs to fully load the data.
I thought the SQL server was designed to perform these sorts of queries quickly. I'm not quite sure how to find out how to speed it up as the filter im applying is external to the view.
An example of what a filter would look like:
((Code<>'A')AND(Date BETWEEN '10/01/2002' AND '12/31/2003'))
That filter would return 7500 records, that largest amount possible to return with one of the filters.