TMSTable taking FOREVER to Open or Activiate

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gymwalker
Posts: 9
Joined: Wed 09 May 2007 23:53
Location: San Diego, CA

TMSTable taking FOREVER to Open or Activiate

Post by gymwalker » Fri 03 Oct 2008 04:31

I'm testing the SDAC Trial version and I can connect to my MSSQL Db just fine...however when I define a TMSTable that I need to read through and set Active := True...it takes forever to come back...in fact I have yet to be able to be patient enough to wait for it to come back...the longest I've lasted is 20 minutes and still no response.

I've played with FetchAll := True and False and haven't noticed any difference. This is a very LARGE table...over 3 million rows...I really need something that is going to give me some performance...I might be able to tolerate a 30 to 60 second wait...but that's about it.

Here are some of my settings for the TMSTable:
AutoCalcFields := true
CachedUpdates := false
CursorType := ctKeySet
FetchAll := true
FetchCount := 1

No filter set

IndexFieldNames := CUSTEDP

Most of the Options are set to default values

ReadOnly := false
UniDirectional := false

The only modification I've made to the TMSConnection component is I've set MultipleActiveResultsSets := true.

I tried looking through the Forum for something related to this but couldn't find anything.

I'm kind of under the gun to get this app working...so resolving this ASAP would be greatly appreciated...I guess I need some guidance as to how to achieve optimal performance from these components when dealing with large tables?

Thanks in advance,
Jim

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Mon 06 Oct 2008 13:10

The

Code: Select all

IndexFieldNames := CUSTEDP 
line enables local sorting that requires all data to be fetched. That's why changing the FeatchAll property will not have any effect.

Post Reply