Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/13 16:35:14 (12 years ago)
Author:
pfleck
Message:

#2030
Activated Delayed Loading for binary data.
Added HiveOperationContext to store HiveDataContext for whole ServiceOperation duration.
Added HiveDao methods to query database objects, not DTOs.
Changed HartbeatManager to use only database objects from new queries.

Location:
branches/HivePerformance/sources/HeuristicLab.Services.Hive.DataAccess/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HivePerformance/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml

    r9123 r9381  
    114114    <Type Name="TaskData">
    115115      <Column Name="TaskId" Storage="_JobId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
    116       <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX)" CanBeNull="false" UpdateCheck="Never" />
     116      <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX)" CanBeNull="false" UpdateCheck="Never" IsDelayLoaded="true" />
    117117      <Column Name="LastUpdate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
    118118      <Association Name="Task_TaskData" Member="Task" Storage="_Job" ThisKey="TaskId" OtherKey="TaskId" Type="Task" IsForeignKey="true" />
     
    123123      <Column Name="PluginDataId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
    124124      <Column Name="PluginId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
    125       <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX) NOT NULL" CanBeNull="false" UpdateCheck="Never" />
     125      <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX) NOT NULL" CanBeNull="false" UpdateCheck="Never" IsDelayLoaded="true" />
    126126      <Column Name="FileName" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
    127127      <Association Name="Plugin_PluginData" Member="Plugin" ThisKey="PluginId" OtherKey="PluginId" Type="Plugin" IsForeignKey="true" />
  • branches/HivePerformance/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs

    r9123 r9381  
    33// <auto-generated>
    44//     This code was generated by a tool.
    5 //     Runtime Version:4.0.30319.17929
     5//     Runtime Version:4.0.30319.18034
    66//
    77//     Changes to this file may cause incorrect behavior and will be lost if
     
    26612661    private System.Guid _JobId;
    26622662   
    2663     private System.Data.Linq.Binary _Data;
     2663    private System.Data.Linq.Link<System.Data.Linq.Binary> _Data;
    26642664   
    26652665    private System.DateTime _LastUpdate;
     
    27142714      get
    27152715      {
    2716         return this._Data;
    2717       }
    2718       set
    2719       {
    2720         if ((this._Data != value))
     2716        return this._Data.Value;
     2717      }
     2718      set
     2719      {
     2720        if ((this._Data.Value != value))
    27212721        {
    27222722          this.OnDataChanging(value);
    27232723          this.SendPropertyChanging();
    2724           this._Data = value;
     2724          this._Data.Value = value;
    27252725          this.SendPropertyChanged("Data");
    27262726          this.OnDataChanged();
     
    28142814    private System.Guid _PluginId;
    28152815   
    2816     private System.Data.Linq.Binary _Data;
     2816    private System.Data.Linq.Link<System.Data.Linq.Binary> _Data;
    28172817   
    28182818    private string _FileName;
     
    28892889      get
    28902890      {
    2891         return this._Data;
    2892       }
    2893       set
    2894       {
    2895         if ((this._Data != value))
     2891        return this._Data.Value;
     2892      }
     2893      set
     2894      {
     2895        if ((this._Data.Value != value))
    28962896        {
    28972897          this.OnDataChanging(value);
    28982898          this.SendPropertyChanging();
    2899           this._Data = value;
     2899          this._Data.Value = value;
    29002900          this.SendPropertyChanged("Data");
    29012901          this.OnDataChanged();
Note: See TracChangeset for help on using the changeset viewer.