Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-48

Support for nested groupBy and limit on grouped result.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: To Do
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Currently query only support single level groupBy on query.

      for example, "groupBy": ["a", "b"] will use two fields on each edge to group by one time.

      user may want to group by collection of edges first by "a", then groupBy grouped collection by "b" secondly.

      I am not sure how many level we should support but I think it would be better to provide 2 or 3 level groupBy on result.

      Also currently, user can`t limit their grouped edges size so I am suggesting following.

      before "groupBy": ["a", "b"]
      after "groupBy": [ {"key": ["a", "b], "limit": 10}, {"key": ["c"], "limit": 2} ]
      

      Firstly I want to ask if this support on query is even necessary. Any feedback is welcomed.

      Attachments

        Activity

          People

            steamshon Do Yung Yoon
            steamshon Do Yung Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: