9.4 Loading a Subgraph from Property Graph Views
You can create a subgraph from a property graph view and load it into memory in the graph server (PGX).
Instead of loading a full graph into memory, you can load a subgraph. This would consume less memory.
The following sections explain in detail on loading and expanding of subgraphs:
- PGQL Based Subgraph Loading
 You can use thePgViewSubgraphReader#fromPgViewAPI to create an in-memory subgraph from a property graph view (PG View) using a set of PGQL queries.
- Prepared PGQL Queries
 You can also use prepared queries when loading a subgraph from a property graph view.
- Providing Database Connection Credentials
 You can specify the database connection credentials with thePgViewSubgraphReader#fromPgViewAPI instead of using the default credentials of the current user.
- Dynamically Expanding a Subgraph
 You can expand an in-memory subgraph by loading another subgraph into memory and merging it with the current in-memory subgraph.
Parent topic: Loading a PG View into the Graph Server (PGX)