INFORMIX
DataBlade API Programmer's Manual
Chapter 11: Developing Server Functions
Home Contents Index Master Index New Book

In This Chapter

A user-defined routine can be executed from a server program as well as from a client program with little or no modification to the code. Any function that does not require interactive input from the user application can be written as a server function. However, not all user-defined functions should be server functions. You must balance the load between the client and the database server to achieve optimal performance.

Because a server function runs as part of a Universal Server process, the function must not do anything that might negatively affect the running of the database server, such as exiting.

To avoid interfering with the operation of the database server, develop functions on the client even if they are intended to run from the server process eventually.

This chapter outlines some additional issues that the application developer should keep in mind when developing programs to run in the database server.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.