Avatar of D Patel
D Patel
Flag 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)
    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
MySQL Server.NET ProgrammingVisual Basic.NET* radcomboSQL

Avatar of undefined
Last Comment
D Patel

8/22/2022 - Mon
John Tsioumpris

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
D Patel

Thanks for the response.
Your help has saved me hundreds of hours of internet surfing.