It is possible to group by on multiple attribute values with the native API and SphinxQL but not with the Storage Engine.
The patch implements a new mode ("multi:") for the groupby function SPH_GROUPBY_MULTIPLE.
After the patch it is possible to group by on multiple attribute values with this query:
SELECT _sph_count, attribute1, attribute2 FROM sphinx_index_table WHERE query = ';groupby=multi:attribute1, attribute2';
- is blocked by
-
MDEV-5480
upgrade sphinxse
-
-
Closed
- links to
-
{"report":{"fcp":2342.399999976158,"ttfb":405.10000002384186,"pageVisibility":"visible","entityId":28429,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":0.5,"journeyId":"b51ae13e-41a8-448d-a465-4f35790eb75d","navigationType":0,"readyForUser":2426.5,"redirectCount":0,"resourceLoadedEnd":1966.7000000476837,"resourceLoadedStart":445.10000002384186,"resourceTiming":[{"duration":869.3999999761581,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/-ibdlr7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":445.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":445.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1314.5,"responseStart":0,"secureConnectionStart":0},{"duration":869.6000000238419,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/-ibdlr7/820016/12ta74/32773c163862cc5905c5590f9caabd2c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":445.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":445.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1315,"responseStart":0,"secureConnectionStart":0},{"duration":918.3000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/ba6988544fdb0e194d1fd7143a97326f-CDN/-ibdlr7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":445.5,"connectEnd":445.5,"connectStart":445.5,"domainLookupEnd":445.5,"domainLookupStart":445.5,"fetchStart":445.5,"redirectEnd":0,"redirectStart":0,"requestStart":445.5,"responseEnd":1363.8000000715256,"responseStart":1363.8000000715256,"secureConnectionStart":445.5},{"duration":1215.1999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/8abf0fe473bddb892cee106824a6c70e-CDN/-ibdlr7/820016/12ta74/32773c163862cc5905c5590f9caabd2c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":445.7000000476837,"connectEnd":445.7000000476837,"connectStart":445.7000000476837,"domainLookupEnd":445.7000000476837,"domainLookupStart":445.7000000476837,"fetchStart":445.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1319.6000000238419,"responseEnd":1660.8999999761581,"responseStart":1332.6000000238419,"secureConnectionStart":445.7000000476837},{"duration":872.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/47dd7b18197fe6400466412777004ffa-CDN/-ibdlr7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":445.89999997615814,"connectEnd":445.89999997615814,"connectStart":445.89999997615814,"domainLookupEnd":445.89999997615814,"domainLookupStart":445.89999997615814,"fetchStart":445.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":445.89999997615814,"responseEnd":1318.6000000238419,"responseStart":1318.6000000238419,"secureConnectionStart":445.89999997615814},{"duration":886.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ibdlr7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":446.2000000476837,"connectEnd":446.2000000476837,"connectStart":446.2000000476837,"domainLookupEnd":446.2000000476837,"domainLookupStart":446.2000000476837,"fetchStart":446.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1321.1000000238419,"responseEnd":1332.5,"responseStart":1331.7000000476837,"secureConnectionStart":446.2000000476837},{"duration":1085.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ibdlr7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":446.3000000715256,"connectEnd":446.3000000715256,"connectStart":446.3000000715256,"domainLookupEnd":446.3000000715256,"domainLookupStart":446.3000000715256,"fetchStart":446.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":1401,"responseEnd":1531.8999999761581,"responseStart":1527.2000000476837,"secureConnectionStart":446.3000000715256},{"duration":958.8999999761581,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/-ibdlr7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":446.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":446.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1405.3999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":1193.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/f66960d7757d5f06891021cb34673e32/shortcuts.js?context=issuenavigation&context=issueaction","startTime":446.60000002384186,"connectEnd":446.60000002384186,"connectStart":446.60000002384186,"domainLookupEnd":446.60000002384186,"domainLookupStart":446.60000002384186,"fetchStart":446.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":1401.2000000476837,"responseEnd":1640.3000000715256,"responseStart":1639.3999999761581,"secureConnectionStart":446.60000002384186},{"duration":958.6999999284744,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/-ibdlr7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":446.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":446.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1405.5,"responseStart":0,"secureConnectionStart":0},{"duration":1085.3000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/da6d607a203f2674ccfb3cffe16d847f-CDN/-ibdlr7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":447,"connectEnd":447,"connectStart":447,"domainLookupEnd":447,"domainLookupStart":447,"fetchStart":447,"redirectEnd":0,"redirectStart":0,"requestStart":1401.2000000476837,"responseEnd":1532.3000000715256,"responseStart":1531.1000000238419,"secureConnectionStart":447},{"duration":1265.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ibdlr7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":448.3000000715256,"connectEnd":448.3000000715256,"connectStart":448.3000000715256,"domainLookupEnd":448.3000000715256,"domainLookupStart":448.3000000715256,"fetchStart":448.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":448.3000000715256,"responseEnd":1714,"responseStart":1714,"secureConnectionStart":448.3000000715256},{"duration":1518.3999999761581,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ibdlr7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":448.3000000715256,"connectEnd":448.3000000715256,"connectStart":448.3000000715256,"domainLookupEnd":448.3000000715256,"domainLookupStart":448.3000000715256,"fetchStart":448.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":448.3000000715256,"responseEnd":1966.7000000476837,"responseStart":1966.7000000476837,"secureConnectionStart":448.3000000715256},{"duration":446.10000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1984.1000000238419,"connectEnd":1984.1000000238419,"connectStart":1984.1000000238419,"domainLookupEnd":1984.1000000238419,"domainLookupStart":1984.1000000238419,"fetchStart":1984.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":1984.1000000238419,"responseEnd":2430.2000000476837,"responseStart":2430.2000000476837,"secureConnectionStart":1984.1000000238419},{"duration":170.39999997615814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2336.3000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2336.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2506.7000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":235,"responseStart":405,"responseEnd":414,"domLoading":443,"domInteractive":2512,"domContentLoadedEventStart":2512,"domContentLoadedEventEnd":2590,"domComplete":2934,"loadEventStart":2934,"loadEventEnd":2937,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2480.7000000476837},{"name":"bigPipe.sidebar-id.end","time":2481.399999976158},{"name":"bigPipe.activity-panel-pipe-id.start","time":2481.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":2482.8000000715256},{"name":"activityTabFullyLoaded","time":2605.5}],"measures":[],"correlationId":"ef575146328cda","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Is anything else blocking this issue? Grouping on multiple attributes is really essential for statistical analysis... We use this patch already, works like a charm