fluree / db

Fluree database library
https://fluree.github.io/db/
Other
337 stars 21 forks source link

Fix/federated graph crawl #744

Closed zonotope closed 6 months ago

zonotope commented 6 months ago

This patch add support for selecting and formatting subgraphs rooted from subject nodes in federated queries. It required a reorganization of our graph crawl code to run in parallel so that we could execute the queries on each component of the federated graph, and stitch the results together with each recursive search.

I also added support for fuel tracking to the graph crawling code and activated the fuel tracker during the normal query execution, but we still have to turn it on both for history and simple subject crawl queries.

I also made a few ergonomic changes to make the index reading and dataset internal apis easier to use.