skip to Main Content

MySQL optimising slow query

I am trying to run a transaction report but it is taking more than 40sec then timeout by the server. Hope I can get some help to get it optimised. select test_txn.abcid, txndate, txndate2 from test_txn inner join test_abc on…

VIEW QUESTION

Can I optimize a SQL query with multiple joins for faster performance in MySQL?

com_cards_charge : com_cards_charge table(DB) com_debt : com_debt table(DB) some of result: Result1 Result2 SELECT * FROM com_cards_charge, com_debt where com_debt.com_debt_cards_charge_id = com_cards_charge.com_cards_charge_id AND debt_Creditor_type in (0, 15) AND com_cards_charge_deleted = '0' GROUP BY com_cards_charge.com_cards_charge_id order by com_cards_charge_id DESC This query…

VIEW QUESTION
Back To Top
Search