diff --git a/CHANGELOG.md b/CHANGELOG.md index e25dcd7b3..70e90a13c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,9 @@ You can also check the ## Unreleased -Nothing yet. +### Changed + +- Improve cube query performance by removing expensive `DISTINCT` and `GROUP BY` clauses from SPARQL queries ### 6.2.5 - 2025-12-02 diff --git a/app/rdf/queries.ts b/app/rdf/queries.ts index 4153f89fa..5d2174909 100644 --- a/app/rdf/queries.ts +++ b/app/rdf/queries.ts @@ -453,7 +453,6 @@ export const getCubeObservations = async ({ preview, limit, observationsView, - disableDistinct: !filters || Object.keys(filters).length === 0, }); const serverFilter = @@ -723,13 +722,13 @@ async function fetchViewObservations({ preview, limit, observationsView, - disableDistinct, }: { preview?: boolean | null; limit?: number | null; observationsView: View; - disableDistinct: boolean; }) { + const disableDistinct = true + /** * Add LIMIT to query */