Graph database in Foundry

Does Foundry have any support for graph style databases? We have the ontology, but I’ve noticed that when there’s lots of things we want to RAG or similar, queries can take some time. Can we use precomputed relational links to counter this? Any other performance improving tips/tricks in the context of the ontology?