rvesse commented on issue #1629: URL: https://github.com/apache/jena/issues/1629#issuecomment-1344097363
Another possible future improvements for TDB 2 wrt Point 2. Once PR #1655 is merged in (post 4.7.0 of course) the same mechanism we're using on a Graph based index to find unique graph names could also be leveraged on other indices with a longer prefix. Since you already know the graph you care about a distinct prefix search with a 16 byte prefix on the `GS??` or `GO??` indices (filtering for the desired graph value) might be more efficient than iterating the index and applying distinct afterwards. Would need some experimentation to see how it compares with the current implementation. Also needs a bit of design thinking about how we signal to `PathLib` that the `Graph` implementation being used has a more efficient way of listing the distinct subjects and/or objects: - Maybe an extra marker interface? - Or just add a new `default` method(s) to Graph that is called instead of the current helper method(s) so specific implementation can provide a more efficient implementation -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
