?
Solved

VB5, Informix And The Need For Speed!

Posted on 1999-01-15
7
Medium Priority
?
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 140 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

752 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