]> gerrit.simantics Code Review - simantics/platform.git/commit
Optimized EntityInstances and ModelingUtils.search*Shallow queries 15/815/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 7 Aug 2017 15:05:35 +0000 (18:05 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 7 Aug 2017 15:05:35 +0000 (18:05 +0300)
commit4b5b16eec880434af849ddd6522332884bfb5538
tree039d481b05077ceec8ed9176afa94af1a7c8c9c7
parent59e011d8d6e88ddebb7300cb60109c6bd43f5de8
Optimized EntityInstances and ModelingUtils.search*Shallow queries

Shallow queries were previously doing tons of useless queries into
dependent ontologies which would have been filtered out anyway. Also
EntityInstances.QueryIndex.perform now optimizes two corner cases:
* only one search result which is usual for GUID searches
* removal of Types:*Entity filter term which is useless because all
  instances are entities.

refs #7415

Change-Id: I89b9495ea51ca8fba4bd40db113c91f4a12932d0
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/impl/EntityInstances.java
bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/CollectionSupportImpl.java
bundles/org.simantics.db/src/org/simantics/db/service/CollectionSupport.java
bundles/org.simantics.modeling/src/org/simantics/modeling/ModelingUtils.java