I have the below code, which returns 10 entries. It seems slow now.
SELECT a.id
, a.patient_name
, a.phone
, p2.card_number
FROM patients as a
LEFT JOIN patient_insurance as p2
ON a.id=p2.patient
WHERE a.patient_name LIKE '%$_GET[term]%'
OR a.id LIKE '%$_GET[term]%'
OR a.phone LIKE '%$_GET[term]%'
OR p2.card_number LIKE '%$_GET[term]%'
LIMIT 10
I have 12,107 Entries in the patients table 2,296 entries in the patient_insurance table
It is a xeon 2 processor linux server, with 16GB ram.. Locally Hosted