genome / ptero-workflow

Client-facing API for the PTero system
1 stars 6 forks source link

Speed up execution report #235

Closed davidlmorton closed 8 years ago

davidlmorton commented 8 years ago

One thing that can speed up this query is eagerly loading the child_workflows relation.

# eagerly load child_workflows on all MethodExecutions
query = self.session.query(models.MethodExecution).options(
        joinedload(models.MethodExecution.child_workflows),
)
method_executions = query.all()
davidlmorton commented 8 years ago

There is no need for this as this endpoint will be deprecated as soon as #236 is in production along with the associated changes to ptero-view in the perlSDK