我创建了一个 java 桌面应用程序,它与服务器通信以从 mysql 获取数据。
目前在服务器上的这个查询:
select
ec_transactions.added,
ec_transactions.merchant_id,
---
ec_customer_billing_details.card_payment_method,
---
ec_customer_details.first_name,
---
ec_customer_card_details.card_holde r_name,
---
from
ec_transactions,
ec_customer_billing_details,
ec_customer_details,
ec_customer_card_details
where ec_transactions.transactions_id = tranId
AND ec_customer_billing_details.customer_id = custId
AND ec_customer_details.customer_id = custId
AND ec_customer_card_details.customer_id = custId
太慢了。 我怎样才能更快地做到这一点?