Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/26/13 17:36:48 (11 years ago)
Author:
pfleck
Message:

#2030
Removed unnecessary UpdatePlugins in UpdateTask.
Optimized GetTask and GetPlugin with compiled queries.

File:
1 edited

Legend:

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

    r9397 r9399  
    9191
    9292      return trans.UseTransaction(() => {
    93         return dtoDao.GetTask(taskId);
     93        return DT.Convert.ToDto(dao.GetTaskById(taskId));
    9494      }, false, false);
    9595    }
     
    159159
    160160      trans.UseTransaction(() => {
    161         dtoDao.UpdateTaskAndPlugins(taskDto);
     161        var task = dao.GetTaskByDto(taskDto);
     162        dao.UpdateTask(task);
    162163      });
    163164    }
     
    167168      author.AuthorizeForTask(task.Id, Permission.Full);
    168169
    169       // what for?
    170       /*trans.UseTransaction(() => {
    171         dtoDao.UpdateTaskAndPlugins(task);
    172       });*/
     170      trans.UseTransaction(() => {
     171        var t = dao.GetTaskByDto(task);
     172        dao.UpdateTask(t);
     173      });
    173174
    174175      trans.UseTransaction(() => {
     
    474475      authen.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Client, HiveRoles.Slave);
    475476      return trans.UseTransaction(() => {
    476         return dtoDao.GetPlugin(pluginId);
     477        return DT.Convert.ToDto(dao.GetPluginById(pluginId));
    477478      });
    478479    }
Note: See TracChangeset for help on using the changeset viewer.