sql >> Base de Datos >  >> RDS >> PostgreSQL

Consulta lenta con combinación externa izquierda y es condición nula

intenta usar no existe:

select i.* 
from   core_item i 
where  not exists (select * from core_item_in_basket b where i.id=b.item_id and b.user_id=__some_user__)