dstack icon indicating copy to clipboard operation
dstack copied to clipboard

Optimize ProjectModel loading

Open r4victor opened this issue 11 months ago • 0 comments

ProjectModel loads PoolModel, InstanceModel, JobModel in a non-lazy way by default. This causes n+1 queries and slows down request processing.

Fix by loading PoolModel, InstanceModel, JobModel only when it's required.

r4victor avatar Mar 20 '24 07:03 r4victor