Created JIRA: https://jira.spring.io/browse/XD-1717 to optimize the queries and handling the batch domain objects.