Skip to content

Commit

Permalink
perf: Add pragmas to SPARQL query button
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Oct 1, 2024
1 parent d80d219 commit 7a19144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ You can also check the

# Unreleased

Nothing yet.
- Performance
- Added pragmas to the SPARQL query button

# [4.9.0] - 2024-10-01

Expand Down
8 changes: 5 additions & 3 deletions app/rdf/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,11 @@ async function fetchViewObservations({
}

const fullQuery = observationsView.observationsQuery({ disableDistinct });
const query = (
preview && limit ? fullQuery.previewQuery({ limit }) : fullQuery.query
).toString();
const query = pragmas
.concat(
preview && limit ? fullQuery.previewQuery({ limit }) : fullQuery.query
)
.toString();

let observationsRaw: PromiseValue<ObservationRaw[]> | undefined;

Expand Down

0 comments on commit 7a19144

Please sign in to comment.