Hi @abhijit-kar, I am looking over the possible way (if any exists). As per my understanding, you are looking at which posts the user has liked from the given list of say 100 posts.
Badger creates the bloom filter lookup for the keys (<predicate, subject>) and with the schema of the above kind, we won’t be able to achieve what you are trying to achieve. We would have to fetch all of the liked posts anyway and the do filtering.
Efficient lookup on the liked_posts would require a bloom filter for each row, I mean for each of the <liked_post, uid> too, which is not supported currently by the badger.
I hope that answers your concern to some extent. Feel free for further discussion.