Solved

VB5, Informix And The Need For Speed!

Posted on 1999-01-15
7
274 Views
Last Modified: 2013-12-25
Afternoon,

Given that an Informix (7.1) Database is keyed and indexed
properly what data access method (Linked MS Access tables,
access jet, ODBC, RPC, others) will provide the quickest
return of data?

Currently I am converting an application from VB/MS Access
to VB/Informix.  I am using ODBCDirect to retrieve data and
for the most part I am not using bound controls.  An example
is retrieving a list of users (~2000 rows) to populate an
unbound combo box via a snapshot recordset.  I am not pleased with the time it takes to perform this process (~10-15 seconds for each and 3 reside on this form).  Or
is it a case where I need to use alternative pick lists?
In this case something other than a combo box?

Thanks for your assistance.

Sincerely,
Slow Hand
box
0
Comment
Question by:PhilCorInc
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 15

Expert Comment

by:ameba
ID: 1499088
Check my code in:
http://www.experts-exchange.com/Q.10116670

It uses GetRows, this can be even faster when using chunks of e.g. 30 rows.
0
 

Expert Comment

by:cuatog
ID: 1499089
PhilCorInc,

I recommend that you use INFORMIX Data Director for VB5.

Also Check your INFORMIX Database tables indexes.

cuatog - OSPC

0
 

Expert Comment

by:cuatog
ID: 1499090
for PhilCorInc


prior to INFORMIX Data Director for VB5, im using also ODBC to connect to INFORMIX Database and I encounter the same problem as you.

cuatog - OSPC Philippines

0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Expert Comment

by:nop08642
ID: 1499091
The fastest ways to Access remote DataBases, appart from proprietary drivers (I don't know which ones exist for Informix) are ODBC+RDO or ADO using an OLEDB Provider (I don't know if there's one allready for informix, but check that in www.microsoft.com/data).
There is also a big difference in performance whether you use client or server side cursors, and the type of cursors.
If you only want to collect data for a Combo box use Server Side, forward only Cursors). after that also use getrows as ameba has allready told you.

0
 

Author Comment

by:PhilCorInc
ID: 1499092
nop08642's solution of forward scrolling cursor & getrows decreased the time by 4-6 secs but I want to get the response time down into the 1-2 second range.  Unless I get and/or find a better method I am going to use nop08642's proposed answer.  I give nop08642's a B!
0
 
LVL 15

Expert Comment

by:ameba
ID: 1499093
I would give A to anyone who can speed up my code.

Can you show your code? Maybe someone can speed it up further.
E.g. using chunks can be 10-30% faster then simple GetRow.
0
 

Accepted Solution

by:
nop08642 earned 70 total points
ID: 1499094
Hi PhilCorInc,
I have another Idea that you can try to speed things up, wich is to use assincronous recordsets. Like this you be able to load the form, and only fill the combos when the selects are finished. Like this the time to the user seems top be slower.
regards
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now