On 02/09/2020 16:17, Élie Roux wrote:
P.S.: Here's another aspect of the problem (although in a different
aspect of the code). If I make the same query + filter on dates in
unions, there seems to be no cache mechanism, as the following takes
3.5s instead of 1.7s:

select ?le ?Nla where {
     {
         ?le adm:logDate ?sdate .
         FILTER(?sdate > "2021-08-20T00:00:00"^^xsd:dateTime)
     } union {
         ?la adm:logDate ?sdate .
         FILTER(?sdate > "2021-08-20T00:00:00"^^xsd:dateTime)
     }
}

select ?le ?la where {
    ?le adm:logDate ?sdate .
    FILTER(?sdate > "2021-08-20T00:00:00"^^xsd:dateTime)
    BIND(?le AS ?la)
}



perhaps that could be the subject of another issue? Or is it another
case that is too abnormal to be optimized? (In a real-life use case, I
would but two different BGP after each FILTER of course)

Best,

Reply via email to