INSTALLATION & AUTHENTICATION
INSTALLATION
There are numerous trino clients available to connect to DataLink SQL. You can also reference the REST API specifications to build your own client/driver.
A package is a collection of functions, data and documentation that extends R's basic functionality.
Endpoints
Key | Value |
---|---|
HOST | data.nasdaq.com |
PORT | 443 |
USER | Your DataLink API Key |
CATALOG | main |
SCHEMA | HURON |
Helpful Functions
- List all tables: SHOW TABLES
- Describe table: DESCRIBE
- Describe the plan for a query: EXPLAIN
Query Performance
- Trino uses a cursor based approach, documented here, to iteratively produce results for your query from the DataLink backend.
- Large partitioned DataTables have their underlying data split into partitions composed of a subset of columns. You can find out which columns are partitions in the "Column Definitions" section of the Data Product page on DataLink. The best query performance is possible when you include these partition columns in your
WHERE
andORDER
BY clauses. You can also describe the plan for a specific query using EXPLAIN to help you tailor more performant queries. - For large partitioned DataTables, we cache partitions to provide better performance for commonly and repeatedly used blocks of data. This means while a query maybe slow the first time, subsequent requests of a similar nature should complete more quickly.
Updated about 1 year ago