title: saving to database takes too long
body: <p>In my application I create an userControl, and then I need to save it to the database. Here is my method, where I'm saving my userControl :</p>
  
  <pre><code>private void SaveControl(byte userControlType, ISelectableViewModel viewModel, Guid guid)
  {
      var context = new EntitiesNew();
  
      var instrumentSettings = new INSTRUMENTSETTINGS
                                 {
                                     USERCONTROL = userControlType,
                                     INSTRUMENTHEIGHT = (float)viewModel.InstrumentHeight,
                                     INSTRUMENTWIDTH = (float)viewModel.InstrumentWidth,
                                     INSTRUMENTSCALABLEVALUE = viewModel.ScalableValue,
                                     INSTRUMENTPOSTOLEFT = (float)viewModel.InstrumentPosToLeft,
                                     INSTRUMENTPOSTOTOP = (float)viewModel.InstrumentPosToTop,
                                     INSTRUMENTZINDEX = viewModel.ZIndex,
                                     CREATED_BY= guid
                                 };
  
      context.INSTRUMENTSETTINGSs.Add(instrumentSettings);
      context.SaveChanges();
  
      viewModel.ControlId = instrumentSettings.INSTRUMENTSETTINGSID;
  
      var roomId = (from room in context.ROOMs 
                   where room.ROOMNAME == viewModel.RoomName
                   select room.ROOMID).FirstOrDefault();
  
      var roomWithInstrument = new ROOMWITHINSTRUMENT
                           {
                               CREATED_BY = guid,
                               INSTRUMENTSETTINGSID = viewModel.ControlId,
                               ROOMID = roomId
                           };
  
      context.ROOMWITHINSTRUMENTs.Add(roomWithInstrument);
      context.SaveChanges();
  }
  </code></pre>
  
  <p>There are no errors, and it's working. The only problem is, that when I'm saving for the first time record to database, it's taking too long (like 2 seconds). After first saving it's working better(less then a second). So my question is - how can I improve first saving, so it will be saving faster?</p>