Incremental delivery (@defer and @stream)
Altair supports the use of the @defer
and @stream
directives to enable incremental delivery of query results, following the specification defined here. The specs are still in draft and are subject to change, but Altair aims to support the latest draft (and older drafts if possible).
WARNING
Note: This feature is only available from v7.2.0 and above.
By default, Altair makes an educated guess on how to handle multiple responses from the server. Depending on the context and the type of response, it will either patch the responses together, display them separately or naively concatenate them into a single response. This is done to provide a seamless experience for the user, but it might not be the best way to handle the responses in all cases. If the default behavior is not what you want, you can change this behavior with the response.stream.strategy
in the settings.