Using Large Dynasets

Using Large Dynasets

I have a VB app that I use to correct records on an Rdb database on a VAX. I am using Microsoft’s TCP/IP and DEC’sODBC drivers. Our databases can get VERY large (in thehundreds of thousands to millions). I create a Dynaset ofan entire table and start at the beginning. Almost none ofmy users will begin their editing process there – they needa means to launch to the record they want. It seems thatFindFirst is much too slow (a few hours) to ever be useful.I’d like to make use of the indexes, but it seems I can’tcreate Table objects with ODBC, so “Seek” appears to be unavailable as an option. My solution thus far has beento create only dynasets of one record. This is still tooslow. Is there a better way to get to my records? I’ve readjust about everything I can get my hands on.

A couple of notes that are fairly obvious to you: Dynasets are slower than snapshots, since they have to create a connection to the database. Also, the ODBC is going to slow it down somewhat more, but it is negligible after the first operation.

What about providing your users with an intermediate search screen? It sounds like they know what they want to edit, they just have to get there. If you can narrow that million records down to a few thousand, things will run much better. As far as searching recordsets, you will probably have to do something like this:

dDm iFound as integeriFound = FalsedsData.MoveFirstDo While not dsData.EOF and not iFound   iFound = dsData(field) = ‘criteria’   if not iFound then dsData.MoveNextLoop
This is reliable for searching dynasets and snapshots.

Share the Post:
XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes

ransomware cyber attack

Why Is Ransomware Such a Major Threat?

One of the most significant cyber threats faced by modern organizations is a ransomware attack. Ransomware attacks have grown in both sophistication and frequency over the past few years, forcing

data dictionary

Tools You Need to Make a Data Dictionary

Data dictionaries are crucial for organizations of all sizes that deal with large amounts of data. they are centralized repositories of all the data in organizations, including metadata such as