MYSQL responding very slow

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
D PatelD Patel, Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John TsioumprisSoftware & Systems EngineerCommented:
How about starting from the basics...just connect to MySQL and check what is the actual response...if you get that the performance is way better than the one you are getting now probably you need to populate RADCombo by using another a datatable..

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
D PatelD Patel, Software EngineerAuthor Commented:
Thanks for the response.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.