MYSQL responding very slow

D Patel
D Patel used Ask the Experts™
on
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)
        conn.Close()
    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)
            conn.Close()
        End If
    End Sub

Open in new window


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

Regards,
D Patel
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software & Systems Engineer
Commented:
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 method...like a datatable..
D PatelD Patel, Software Engineer

Author

Commented:
Thanks for the response.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial