Using virtual processors with UDRs written in C
About this task
To run in the CPU VP class, a C UDR must be well behaved; that is, it must adhere to special programming requirements. Running in a user-defined VP relaxes some, but not all, of the programming requirements of a well-behaved routine. For example, these routines can issue direct file-system calls that block further processing by the virtual processor until the I/O is complete. Because virtual processors are not CPU virtual processors, however, the normal processing of user queries is not affected. However, they still cannot perform local resource allocations because they might migrate among the VPs.
To assign a C UDR to a user-defined VP class:
Procedure
Results
The VP class need not exist when the routine is registered. However, when you execute the routine, the class must exist and have virtual processors assigned to it. If the class does not have any virtual processors, you receive an SQL error.
For more information about how to choose a virtual-processor class for a C UDR, see the HCL OneDB™ DataBlade® API Programmer's Guide. For information about the VPCLASS configuration parameter, see the HCL OneDB Administrator's Reference.