Skip to content

scenario bundel sparql queries are very slow #2197

@wingechr

Description

@wingechr

@jh-RLI maybe the performance issues are related to the filter_scenario_bundles_view. executing it locally, it takes very long and fuseki spams a LOT of executed queries. there is a lot of nested loops, like here:

scenario_bundles_input = set()

        for bundle, _, _ in self.oekg.triples(
            (None, RDF.type, namespaces.OEO.OEO_00020227)
        ):
            for scen in related_scenarios_input:
                for s1, _, _ in self.oekg.triples(
                    (bundle, namespaces.OBO.BFO_0000051, scen)
                ):
                    if s1:
                        scenario_bundles_input.add((s1, bundle))

Originally posted by @wingechr in #2189

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions