Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-21

Change return type of findAll(…) methods to return Iterable rather than List.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 M3
    • Fix Version/s: 1.0 M4
    • Component/s: Repositories
    • Labels:
      None

      Description

      Some datastores (e.g. Neo4J) allow delaying the actual data retrieval by returning Iterable instead of Collection types. This can significantly improve performance especially when working with large result sets. As our findAll(…) methods all return List instances we force eager retrieval of the data in any case.

      So we could change the return types of findAll(…) methods for Repository and have store specific ones override those methods to return List again in case these stores can only return Collection instances anyway (e.g. JPA, Mongo).

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            olivergierke Oliver Drotbohm
            Last updater:
            Trevor Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: