Enterprise cheat sheet

This cheat sheet only deals with code concepts specific to Deephaven Enterprise. For the Deephaven Community cheat sheet, which includes the majority of the table API, see Ultimate Community Core Cheat Sheet.

Access data

You can query the Deephaven database for both static and live tables. The following code pulls from built-in namespaces, such as the LearnDeephaven namespace.

Filter on partitioning values

Filtering first by partitioning values (most often the set of Dates) is both a best practice and necessary for some downstream use cases.

Log a table to a system table

You can log to a system table once:

Or you can log to a system table incrementally:

Share tables between workers

You can share tables between workers in the same cluster or different clusters via the remote table API:

Install additional Python packages

To install packages at runtime:

Performance overview

You can generate a performance overview of tables and plots for a query by its ProcessInfoID (PID), worker name, or PQ name:

Write tables to a user namespace

Though the below uses a namespace called ExampleNamespace, it is best practice for teams to establish a naming protocol for namespaces. The table becomes available as a historical user table.