oeplatform icon indicating copy to clipboard operation
oeplatform copied to clipboard

scenario bundel sparql queries are very slow

Open wingechr opened this issue 4 weeks ago • 0 comments

@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

wingechr avatar Dec 22 '25 14:12 wingechr