Skip to content

Commit 5d05202

Browse files
authored
Merge pull request #2509 from visualize-admin/disable-distinct-queries
refactor: remove conditional `disableDistinct` and make it always enabled
2 parents dcf9ed9 + 5e1326b commit 5d05202

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ You can also check the
1111

1212
## Unreleased
1313

14-
Nothing yet.
14+
### Changed
15+
16+
- Improve cube query performance by removing expensive `DISTINCT` and `GROUP BY` clauses from SPARQL queries
1517

1618
### 6.3.0 - 2026-02-12
1719

app/rdf/queries.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ export const getCubeObservations = async ({
453453
preview,
454454
limit,
455455
observationsView,
456-
disableDistinct: !filters || Object.keys(filters).length === 0,
457456
});
458457

459458
const serverFilter =
@@ -723,13 +722,13 @@ async function fetchViewObservations({
723722
preview,
724723
limit,
725724
observationsView,
726-
disableDistinct,
727725
}: {
728726
preview?: boolean | null;
729727
limit?: number | null;
730728
observationsView: View;
731-
disableDistinct: boolean;
732729
}) {
730+
const disableDistinct = true
731+
733732
/**
734733
* Add LIMIT to query
735734
*/

0 commit comments

Comments
 (0)