peterjohnlawrence / com.inova8.odata2sparql.v4

Part of the overall odata2sparql solution, this odata2sparql.v4 module containing the olingo4 dependencies. In other words specifically for odata v4
http://inova8.com/bg_inova8.com/offerings/odata2sparql/
Apache License 2.0
5 stars 5 forks source link

BIND within OPTIONAL causes perfomance problems #135

Closed peterjohnlawrence closed 5 years ago

peterjohnlawrence commented 5 years ago

Performs well:

#expandItemWhere

BIND(?node4 AS ?LinkedEntitySearchsearch_node4_sm) OPTIONAL { ...}

expandItemWhere

BIND(?node5 AS ?LinkedEntitySearchsearch_node5_sm) OPTIONAL { ...} ...

Performs badly:

#expandItemWhere

OPTIONAL { BIND(?node4 AS ?LinkedEntitySearchsearch_node4_sm) ... }

expandItemWhere

OPTIONAL { BIND(?node5 AS ?LinkedEntitySearchsearch_node5_sm) ... } ...