Updated on 2023-10-31 GMT+08:00

Example: Common Operations

Example 1

Before completing the following example, you need to create a stored procedure.

This example illustrates how to develop applications based on the GaussDB(DWS) JDBC interface.

Example 2: High Client Memory Usage

In this example, setFetchSize adjusts the memory usage of the client by using the database cursor to obtain server data in batches. It may increase network interaction and damage some performance.

The cursor is valid within a transaction. Therefore, you need to disable the autocommit function.