In my query I want to get all users of the same city. This query will also be available to end users so that they can see other users of same city. I query user table so it retrieves all the users even who has ran the query.
Now there are 2 options :
Either I add a condition to query user.id != (userid of query running user)
Or process the query result before displaying it and removing user who is running the query.
Does it matter or have any considerable effect which one I use?
Note - My main query is not as simple as finding same city but uses 3 table join to access the data which user wants to display. I just put city here for brevity.