TADOQuery.Recordset.Fields VS TMSQuery.FieldByName
Posted: Tue 28 Apr 2015 23:04
I have a table with 1 million records.
When using TADOQuery.Recordset.Fields and TADOQuery.Recordset.MoveNext the loading of the data can be done in about 40 secs.
When using TMSQuery.FieldByName and TMSQuery.Next this takes over 2 minutes.
1. How can I get the same performance out of the SDAC components?
2. Using the follow query (the table has 1 million records in it):
And using a TMSQuery (v7.1.3) with ReadOnly to False, the load goes fine, but if I set ReadOnly to True, an 'Out of memory' exception is raised.
When using TADOQuery.Recordset.Fields and TADOQuery.Recordset.MoveNext the loading of the data can be done in about 40 secs.
When using TMSQuery.FieldByName and TMSQuery.Next this takes over 2 minutes.
1. How can I get the same performance out of the SDAC components?
2. Using the follow query (the table has 1 million records in it):
Code: Select all
SELECT owner_location_id, owner_id, owner_location_date_time,
owner_location_shape.AsBinaryZM() AS owner_location_shape, owner_location_notes
FROM owner_location';