I was hoping to speed up the query, by letting the database know, I’m only interested in the followup
, followup_done
and customer
(linked) columns of the event
table.
I guessing by your response, that this is not what I am achieving, and am using the q._fetch_only()
wrong?
Basically what the whole function does, is return every customer from a specified country and with a specified status, that does not have an event with a followup.
Simplified mockup of my DB structure: