Skip to the main content.
Downloads Thriftly Login
Downloads Thriftly Login
Group 762

Migrate and run DataFlex applications with Oracle, MS SQL Server, PostgreSQL, MySQL &  MariaDB.

flex2Crystal

Stuck in Crystal XI?  Upgrade and use the latest versions of Crystal Reports with DataFlex applications. 

BTR2SQL

Seamlessly convert from Btrieve transactional database to PostgreSQL, Oracle, and MS SQL Server.

thriftly-1

Quickly build multi-protocol web services with the same API. Supports JSON-RPC, REST, SOAP,  Thrift, and gRPC.

 Group 671-1

 

Why Mertech?

1 min read

How to choose the right cursor type in embedded SQL calls

How to choose the right cursor type in embedded SQL calls

Flex2SQL for Microsoft SQL Server allows developers to use either client-side or server-side cursors in their embedded SQL queries. In Flex2SQL Version 15, we significantly improved these queries' performance, so your DataFlex app can conduct embedded SQL queries even more quickly.  


Choosing between server-side and client-side cursors  

In most cases, we recommend you use server-side cursors when performing embedded SQL queries within your DataFlex application(s).  That's why, even with Flex2SQL 15's enhanced client-side cursor performance, we continue to use server-side cursors as our default.

Over the years, we've found most developers use embedded SQL calls to off-load complex processing to their database server and don't need to return large result sets to their program. Because server-side cursors send data to the client only as that data's requested, they're a perfect fit for these types of queries. Server-side cursors fetch data row-by-row, allowing them to deliver small result sets quickly while also conserving your network bandwidth.

However, when you need to work with large data and result sets, such as when you're assembling data for large reports, client-side cursors provide a significant performance boost.  For example, in our own tests, we found that fetching the same 50,000 record result set was five times faster using a client-side cursor query than a server-side cursor query.


Flex2SQL allows you to dynamically set your SQL query's cursor type so that, when you're working with large data sets and want to boost your query's performance, you can use client-side cursors, and when you don't want to overwhelm your network, you can use server-side cursors.

To learn more about when you might want to take advantage of client-side cursor searches, watch the below clip from our Flex2SQL Version 15 webinar:

 


If you haven't already, be sure to upgrade to Flex2SQL Version 15, so you can take advantage of our improved client cursor Microsoft SQL Server queries when you need them.

 

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More
Application Modernization 101: Ultimate Guide to Digital Transformation

Application Modernization 101: Ultimate Guide to Digital Transformation

Imagine breaking free from the constraints of old, monolithic systems and embracing the agility and innovation of cloud-based solutions.

Read More