Solved

VB5, Informix And The Need For Speed!

Posted on 1999-01-15
7
281 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 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