Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/13 17:16:49 (12 years ago)
Author:
pfleck
Message:

#2030
Replaced lazy loading with specialized queries.
Compiled queries used for Heardbeat queries.
Changed result types to IQueryable<T> for later query modification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/Interfaces/IHiveDao.cs

    r9381 r9385  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Linq;
    2425using System.Linq.Expressions;
    2526using HeuristicLab.Services.Hive.DataAccess;
     
    4142    void DeleteTask(Guid id);
    4243    IEnumerable<TaskInfoForScheduler> GetWaitingTasks(DT.Slave slave);
    43     IEnumerable<TaskInfoForScheduler> GetWaitingTasksDA(Slave slave);
     44    IQueryable<TaskInfoForScheduler> GetWaitingTasksDA(Slave slave);
    4445    IEnumerable<DT.Task> GetParentTasks(IEnumerable<Guid> resourceIds, int count, bool finished);
    4546    DT.Task UpdateTaskState(Guid taskId, TaskState taskState, Guid? slaveId, Guid? userId, string exception);
     
    123124    void AssignJobToResource(Guid taskId, IEnumerable<Guid> resourceIds);
    124125    IEnumerable<DT.Resource> GetAssignedResources(Guid jobId);
     126    IQueryable<Guid> GetAssignedResourcesIdsDA(Guid taskId);
    125127    IEnumerable<DT.Resource> GetParentResources(Guid resourceId);
    126128    IEnumerable<Resource> GetParentResourcesDA(Guid resourceId);
     129    IEnumerable<Guid> GetParentResourcesIDsDA(Guid resourceId);
     130    IQueryable<int> GetNumberOfDowntimesFromParentResourcesAtCurrentTimeDA(Guid resourceId, DowntimeType type);
    127131    IEnumerable<DT.Resource> GetChildResources(Guid resourceId);
    128132    IEnumerable<DT.Task> GetJobsByResourceId(Guid resourceId);
Note: See TracChangeset for help on using the changeset viewer.