Link to home
Start Free TrialLog in
Avatar of D Patel
D PatelFlag for India

asked on

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)
        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
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of D Patel

ASKER

Thanks for the response.