Refactor BatchedStore to support leftJoin