I need more speed
Posted: Thu 09 Jun 2005 19:47
I have a project where I'm installing the same data to a SQL database and a Paradox database. The records in any given table may already exist, in which case they must be edited, or they may not exit, in which case they must be appended. To know which, the TTable.FindKey method is used for Paradox and the TMSTable.Locate method is used for SQL.
I knew SQL wasn't optimized to work with individual rows, but the speed difference is so enormous that I think I'm doing something wrong, but I have not been able to determing what it is. On our SQL database my utility takes 15 hours to do the same job that it does on our Paradox database in just 4 minutes
The TMSTable.locate method is being used to find rows based on columns that are used for the primary index, so I don't know why the slow response. Doesn't the TMSTable.locate method make use of existing indexes
I knew SQL wasn't optimized to work with individual rows, but the speed difference is so enormous that I think I'm doing something wrong, but I have not been able to determing what it is. On our SQL database my utility takes 15 hours to do the same job that it does on our Paradox database in just 4 minutes

The TMSTable.locate method is being used to find rows based on columns that are used for the primary index, so I don't know why the slow response. Doesn't the TMSTable.locate method make use of existing indexes
