Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-734

Provide a Slice based implementation of PagingAndSortingRepository

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This may belong in DATAREST, but I figured I'd start here.

      As has already been recognized, sometimes the extra count( * ) query can be incredibly expensive, depending on the database engine. Currently, within Spring Data REST, there is no way to re-map an entity's collection resource to utilize a method that returns a Slice instead of a Page. Of course you can write your own methods that do this, but this does not affect the collection resource for SDR.

      SO Reference: http://stackoverflow.com/questions/29946477/disable-row-count-of-findall-collection-resource-in-spring-data-rest

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              bvulaj Brandon Vulaj
              Last updater:
              Spring Issues Spring Issues
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: