f9d92551d9fa135ebc246d5b28b98331440093bc,mlflow/store/sqlalchemy_store.py,SqlAlchemyStore,_search_runs,#SqlAlchemyStore#Any#Any#Any#Any#Any#Any#,526
Before Change
INVALID_PARAMETER_VALUE)
with self.ManagedSessionMaker() as session:
runs = [run.to_mlflow_entity(session)
for exp in experiment_ids
for run in self._list_runs(session, exp, run_view_type)]
filtered = SearchUtils.filter(runs, filter_string)
sorted_runs = SearchUtils.sort(filtered, order_by)
After Change
// tags. These run attributes are referenced during the invocation of
// ``run.to_mlflow_entity()``, so eager loading helps avoid additional database queries
// that are otherwise executed at attribute access time under a lazy loading model.
queried_runs = session \
.query(SqlRun) \
.options(*self._get_eager_run_query_options()) \
.filter(
SqlRun.experiment_id.in_(experiment_ids),
SqlRun.lifecycle_stage.in_(stages)) \
.all()
runs = [run.to_mlflow_entity() for run in queried_runs]
filtered = SearchUtils.filter(runs, filter_string)
sorted_runs = SearchUtils.sort(filtered, order_by)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: mlflow/mlflow
Commit Name: f9d92551d9fa135ebc246d5b28b98331440093bc
Time: 2019-09-03
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: _search_runs
Project Name: mlflow/mlflow
Commit Name: f38a634a118fe55d6f98ede2d82624f4cba38fcf
Time: 2019-09-04
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: get_experiment_by_name
Project Name: ray-project/ray
Commit Name: 80f6dd16b2a7f5e90ff882751c37b7f2e02bd147
Time: 2020-12-20
Author: me@barakmich.com
File Name: python/ray/experimental/client/server/server.py
Class Name: RayletServicer
Method Name: _schedule_function