Optimize ReadGraph.hasStatements(s,p) to not use getObjects(s,p) 08/4308/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 10 Jun 2020 18:41:27 +0000 (21:41 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 10 Jun 2020 18:59:14 +0000 (18:59 +0000)
commitac990d10ff2d1d1042a68f0594489aed23a27453
tree5931e947208200bda07f236215a96494474e8d18
parent07710b8d5004ddfc203ff18a2c3f7a361f952c52
Optimize ReadGraph.hasStatements(s,p) to not use getObjects(s,p)

Depending on the predicate asked for, hasStatements(s,p) can be
optimized to not realize the entire [object] result list created by
getObjects(s,p).

gitlab #558

Change-Id: I7be1d2000396ce6c1e4595cabaafef5db4224de9
bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/ReadGraphImpl.java