Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/08/15 15:51:32 (9 years ago)
Author:
dglaser
Message:

#2388:

HeuristicLab.Services.Access:
HeuristicLab.Services.Access.DataAccess:

  • Changed connection strings and certificates for local usage

HeuristicLab.Services.Hive.DataAccess:

  • Added compiled queries for frequently used queries
  • Integrated string queries from OptimizedHiveDao

HeuristicLab.Services.Hive:

  • Added NewHeartbeatManager.cs
  • Added NewRoundRobinTaskScheduler.cs
  • Added PerformanceLogger
  • Updated AuthoriziationManager
  • Updated NewHiveService
    • Added Regions
    • Implemented missing methods
    • Improved performance of several queries

HeuristicLab.Services.WebApp.Status:

  • Fixed a bug which caused an error when calculating the average waiting time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/HiveStatistics/DimTimeDao.cs

    r12468 r12691  
    2929
    3030    public override DimTime GetById(DateTime id) {
    31       return Table.SingleOrDefault(x => x.Time == id);
     31      return GetByIdQuery(DataContext, id);
    3232    }
    3333    public DimTime GetLastEntry() {
    34       return Table.OrderByDescending(x => x.Time).FirstOrDefault();
     34      return GetLastEntryQuery(DataContext);
    3535    }
     36
     37    #region Compiled queries
     38    private static readonly Func<DataContext, DateTime, DimTime> GetByIdQuery =
     39      CompiledQuery.Compile((DataContext db, DateTime id) =>
     40        (from dimTime in db.GetTable<DimTime>()
     41         where dimTime.Time == id
     42         select dimTime).SingleOrDefault());
     43
     44    private static readonly Func<DataContext, DimTime> GetLastEntryQuery =
     45      CompiledQuery.Compile((DataContext db) =>
     46        (from dimTime in db.GetTable<DimTime>()
     47         orderby dimTime.Time descending
     48         select dimTime).FirstOrDefault());
     49    #endregion
    3650  }
    3751}
Note: See TracChangeset for help on using the changeset viewer.