jsr-333
  1. jsr-333
  2. JSR_333-20

Add aggregation support for queries

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: spec
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      20

      Description

      There should be at least basic support for aggregation in queries (i.e. count).

      Currently the number of results of a query are available from the NodeIterator
      returned by QueryResult#getNodes(). However since implementations are free to
      return -1 if the number of elements is not available this method is not reliable.

      IMO the current approach mixes two concerns: querying for nodes and querying for
      the number of nodes satisfying the query condition. This is particularly
      problematic since users might not be interested in both but still encounter any
      performance impediment from calculating the other.

        Activity

        Hide
        Peeter Piegaze added a comment -

        Do you have a proposal on how to fix this?

        Show
        Peeter Piegaze added a comment - Do you have a proposal on how to fix this?
        Hide
        thomasmueller2 added a comment -

        The standard way in SQL "select count from ..."

        P.S. I believe Michael is on vacation until May 15th.

        Show
        thomasmueller2 added a comment - The standard way in SQL "select count from ..." P.S. I believe Michael is on vacation until May 15th.
        Hide
        lsmith77 added a comment -

        yes .. however i think we may even want to go further and define how facetting is to be supported as an optional feature. but of course such "virtual" nodes do not fit well with the current standard.

        Show
        lsmith77 added a comment - yes .. however i think we may even want to go further and define how facetting is to be supported as an optional feature. but of course such "virtual" nodes do not fit well with the current standard.
        Hide
        Peeter Piegaze added a comment -

        Does anyone have any more detailed ideas on this?

        Show
        Peeter Piegaze added a comment - Does anyone have any more detailed ideas on this?
        Hide
        Peeter Piegaze added a comment -

        Since we want to submit for public reveiew ASAP and have only a few issues left to resolve I am closing this as WONT-FIX due to lack of interest. If sufficient interest re-appeears, we can make this Public review bug

        Show
        Peeter Piegaze added a comment - Since we want to submit for public reveiew ASAP and have only a few issues left to resolve I am closing this as WONT-FIX due to lack of interest. If sufficient interest re-appeears, we can make this Public review bug

          People

          • Assignee:
            Peeter Piegaze
            Reporter:
            mduerig
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: