We help IT Professionals succeed at work.

MYSQL responding very slow

Last Modified: 2017-03-25
Hi Experts,

I am using MYSQL database as a backend to my VB.NET web application.

I have used RADCOMBO feature to populate data from MYSQL Query. There are approx 8 comboboxes which are interlinked with each other. That means on selecting the first combobox value the second combobox will show filtered records according to first one and so on...

For filling the combobox it takes time approx 1-2 minutes for each. The filling the combobox returns the correct value.

It's only taking time to query it with MYSQL..

How to get rid of this issue?

My sample code is as below :
Protected Sub rdSls_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs)
        Dim conobj As New connection
        Dim conn = conobj.makeConnection
        fillobj.radFillCombo(rdSls, e, "nSlsID", "sSlsNo", "tsls", " and nOrderStID <> 6", conn)
    End Sub

    Protected Sub rdOrd_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs)
        If rdSls.SelectedValue <> "" Then
            Dim conobj As New connection
            Dim conn = conobj.makeConnection
            fillobj.radFillCombo(rdOrd, e, "nSlsDetID", "sOrdNo", "tslsdet", " and nSlsID=" & Val(rdSls.SelectedValue) & " and sOrdNo <>'' group by sOrdNo", conn)
        End If
    End Sub

Open in new window

Sometimes I also getting error related to 'Postback' due to this issue...

D Patel
Watch Question

IT Supervisor
Distinguished Expert 2019
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
D PatelD Patel, Software Engineer


Thanks for the response.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions