Model Code
Models in Cloudera Data Science Workbench are designed to run any code that is wrapped into a function.
This means you can potentially deploy a model that returns the result of
a SELECT *
query on a very large table.
However, Cloudera strongly recommends against using the models feature for such use cases.
As a best practice, your models should be returning simple JSON responses in near-real time speeds (within a fraction of a second). If you have a long-running operation that requires extensive computing and takes more than 15 seconds to complete, consider using batch jobs instead.