Advantages of Server-Side Cursor Location
The following are some benefits of using the server-side cursor location:
- Reduced network traffic: As the cursor is created on the server-side, the server fetches only the required data from the database, reducing unnecessary network traffic.
- Improved performance: The server does all the data manipulation tasks, such as filtering, sorting, and grouping, and the client only needs to display the result set. This reduces the client's workload, resulting in improved performance.
- Minimal memory usage: When the cursor is created on the server-side, the server performs all data manipulation tasks, and the client only displays the result set. Therefore, minimal memory is used on the client-side.
Advantages of Client-Side Cursor Location
The following are some benefits of using the client-side cursor location:
- Data manipulation: With the cursor created on the client-side, the client can carry out all the data manipulation tasks, such as sorting, filtering, and grouping, based on their preferences.
- Disconnected recordset: With client-side cursor location, the result set is stored in memory, which means that the recordset is disconnected from the database. This allows clients to update the data without the need for a costly re-connection to the database.
- Online/Offline mode: Client-side cursor location operates in both online and offline modes. Clients can execute the query, fetch the result set, manipulate the data, and save the changes when in online mode. And when in offline mode, clients can fetch the result set from memory, manipulate the data, and synchronize the result set with the database when the connection is established.