CAS vs. Compute Server: Where Should You Run Your FedSQL Code in SAS Viya

This code is also available in: Deutsch Español Français
Michael

Expert Advice

Michael
Responsable de l'infrastructure Viya.

Views are excellent for single-pass usage or ad-hoc queries. However, if you plan to analyze the same data multiple times in a session (e.g., running 10 different statistical procedures on it), it is usually more efficient to copy it to a physical table once to avoid re-querying the database repeatedly.

Stop replicating data unnecessarily—use SAS Views for real-time efficiency.
FedSQL on the SAS© Viya platform supports new data types and proprietary extensions, optimizing queries with multi-threaded algorithms for large-scale operations. It can be submitted via the SAS© Compute Server or the CAS Server. With the Compute Server, FedSQL supports the same statements as in SAS© 9.4 and uses PROC FEDSQL to access data via SAS© libraries. On the CAS Server, only CREATE TABLE (with AS expression), SELECT, and DROP TABLE are supported, with full implicit SQL pass-through support and limited explicit pass-through via the CONNECTION TO component. Data processed on the CAS Server uses CAS data types.