Hi!
I have an important question. I do a query to a Firebird database. I use the MDO (Mercury Database Objects) components for access the database. When I do click over the title of each column, I change the clause 'ORDER BY' and re-open the query. Then I execute the method 'Locate' to position the cursor. The problem is that when I execute this method, the component (TMDOQuery) scroll by all records so far the record searched. This operation takes several seconds (sometimes a lot of seconds). I don't want use the component TClientDataSet. The objetive is finds a solution as it does the IBExpert program. This program order the results and manteins the cursor on the same location.
How can I do it?
Maybe the problem is in use the method 'Locate', but I too want search records in a dbgrid. When the grid has a lot of records (more than 1000), the quest causing a lot of 'Fetch Next', and takes a lot of time.
I must solve this problem, using forced a dbgrid.
I have an important question. I do a query to a Firebird database. I use the MDO (Mercury Database Objects) components for access the database. When I do click over the title of each column, I change the clause 'ORDER BY' and re-open the query. Then I execute the method 'Locate' to position the cursor. The problem is that when I execute this method, the component (TMDOQuery) scroll by all records so far the record searched. This operation takes several seconds (sometimes a lot of seconds). I don't want use the component TClientDataSet. The objetive is finds a solution as it does the IBExpert program. This program order the results and manteins the cursor on the same location.
How can I do it?
Maybe the problem is in use the method 'Locate', but I too want search records in a dbgrid. When the grid has a lot of records (more than 1000), the quest causing a lot of 'Fetch Next', and takes a lot of time.
I must solve this problem, using forced a dbgrid.