I have a list of thousands ids and based on these ids I want to determine which entities exist in my DB, because the list is big I can't afford sending thousands of queries synchronously, BulkOperations won't help me because it only supports insert,update and remove operations. I can't use findAll(Query query..) because each entity contains massive binary fields and from what I know Spring doesn't support lazy loading in MongoDB.
What I want to achieve:
List<String> ids = getIds();
List<Boolean> existsList = repository.exists(ids);