I have written a query. It works better. But currently, all tables have 100K rows, and one of my queries is returning too slowly. Can you suggest me how to optimize my query?
1 2 3 4 5 6 7 8 9 10 |
|
Please note that the "patient ID" here is varchar.
P粉1248907782024-03-31 00:07:43
Thismayrun faster:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
These indexes may be helpful:
1 2 |
|
Due to poor OR
optimization, it may be better to choose NULL or the empty string for communicate_with_pt
(to avoid testing both).