Professional Documents
Culture Documents
4 Release Notes
------------------------------------
We have made the Use Procedure Bodies flag obsolete and introduced the Check
Parameters option. They server mainly the
same purpose. The Check Parameters option is true by default. Setting to false
tells
Connector/Net to not fetch any routine or parameter metadata and to simply trust
what the user has specified. This can greatly
increase performance but it also puts significant pressure on the application
developer to give the parameters in the right
order.
The next change in behavior is that Connector/Net no longer allows you to call a
stored function without specifying a return value.
We are now using the presence of a return value parameter as a signal that we
should execute the routine as a stored function. If
you don't care about the return value, then give a place holder value.
The next change is that if you user has insufficient permissions to retrieve
parameter metadata,
you are not connecting to server 5.5 or later, and you have specified Check
Parameters then the connector will throw an
InvalidOperationException indicating that you have insufficient privileges to
retrieve routine parameter metadata. In the past the
connector would silently use the parameters you gave on the command.
Table Caching
-------------
We have not yet updated the documentation so we write a few words on table caching
here.
Table Caching is a new feature that users can use to cache slow-changing datasets
on the client side. This is useful for apps
that are designed to use readers but you still want to minimize trips to the server
for slow-changing tables.
To enable caching, add 'table cache=true' to your connection string. You can also
use the 'Default Table Cache Age'
connection string option to specify the number of seconds a table is cached before
being discarded. You can also
set caching and cache age options on a per command basis. Please note that the
cache age property is in "seconds".
In the future we may extend this feature to allow the end user to provide their own
implementation or we may provide
an implementation of table caching that can take advantage of services such as
memcached or velocity.
Connection Failover
-------------------
We are introducing a new connection string keyword called 'Replication'. By setting
this to yes or true you
are indicating that this connection will use a set of replicated servers. With
this release replicated servers
are only supported on TCP/IP connections and it supports connection failover on the
initial connection.