SELECT *
FROM bucket parent
LEFT JOIN bucket reply
ON parent.quoted_id == reply.id
WHERE parent.obj_type == 0
AND parent.sender_jid == 'noobmaster69'
AND (parent.quoted_id == reply.id OR parent.quoted_id == '')
AND parent.timestamp > 1571180243
AND parent.timestamp < 1572148029;
i create index for almost every key, but i still got :
No index available for ANSI join term reply