Under the hood
Join emulation work by transparently analyzing the requests which 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 two collections:
books
andauthors
Both collections are hosted on different SQL databases
You display the book list on 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