| Author |
Message |
valeryf
Joined: 21 Mar 2003 Posts: 1
|
Posted: Fri Mar 21, 2003 10:48 am Post subject: Packet size & response time with parametized SQL |
|
|
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 |
|
 |
Guest
|
Posted: Mon Mar 24, 2003 11:13 am Post subject: |
|
|
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
|
Posted: Mon Mar 24, 2003 11:22 am Post subject: Open-Client calls |
|
|
| 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 |
|
 |
|