VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
Packet size & response time with parametized SQL

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
valeryf



Joined: 21 Mar 2003
Posts: 1

PostPosted: Fri Mar 21, 2003 10:48 am    Post subject: Packet size & response time with parametized SQL Reply with quote

ASE 11.9.2

1) Network packet size:
How to specify it. My ASE has default to 1024 and real packets are always 512 with dll?

2) Response time on a lan:
Response time quite immediate with standard SQL and 1-2 seconds with parametized request. Seems to be ASE response problem. Is there any parameter to tune?

Valéry
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Mar 24, 2003 11:13 am    Post subject: Reply with quote

1) In the current implementation you can obtain a connection handle with ISQLConnection.getOption(eConnNativeHandle) method. You can use this handle in direct calls of Open-Client API functions. For example, ct_con_props(conHandle, CS_SET, CS_PACKETSIZE, ... ) can configure a size of TDS packets.

This feature will be also added to the next releases.

2) A non-parametrized query is very quick because a unidirectional non-caching datasets doesn't fetch all records from the server. They perform a fetch by demand (when you call Next method).
A parametrized query needs a time to be executed by the server (to perform a WHERE search condition). You can create indices to increase a database performance.
Back to top
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Mon Mar 24, 2003 11:22 am    Post subject: Open-Client calls Reply with quote

Anonymous wrote:
You can use this handle in direct calls of Open-Client API functions. For example, ct_con_props(conHandle, CS_SET, CS_PACKETSIZE, ... ) can configure a size of TDS packets.


See Sybooks here
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group