-
|
Hello, in the context of our iTwin plugin for Unreal, we are currently querying some properties for all Elements of a displayed iModel using requests to the RPC interface (IModelReadRpcInterface-3.6.0-queryRows). This is because all the other data we need are streamed from dedicated services - 3DTiles, 4D schedules, etc. - so we don't have any other access to the iModel. Currently we are doing 2 chains of requests, with these queries:
I am now looking at retrieving the FederationGuid as well, and it would seem I can have all 3 properties with a single query: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
To clarify, I know the |
Beta Was this translation helpful? Give feedback.
-
|
Hi, one piece of information that I'm missing is why you need the parent id - can you explain that? A couple of query-related comments:
|
Beta Was this translation helpful? Give feedback.
Hi, one piece of information that I'm missing is why you need the parent id - can you explain that?
A couple of query-related comments:
For navigation property - based relationships it's more performant to query the class that has the navigation property, than the relationship. So instead of
SELECT ECInstanceID, SourceECInstanceID FROM bis.ElementOwnsChildElements, it's better to doSELECT ECInstanceId, Parent.Id FROM bis.Element.You can select element aspects' information in the same query, too: