Under the hood
This is the official documentation of the @forestadmin/agent
Node.js agent.
Join emulation works by transparently analyzing the requests that are performed by the frontend and customer API in your Agent, and translating them into multiple requests to the relevant data sources.
For instance, assuming that:
you defined a jointure between 2 Collections:
books
andauthors
,both Collections are hosted on different SQL databases
you display the
books
list in your admin panel
The request will be transparently split and its result merged to produce the same output as if the original query was run.
Automatic query splitting is a very powerful tool however not all queries are created equal.
In this simple example, it is a straightforward three-step process, but the feature can come at the cost of performance on more complex queries.
Last updated