AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Delphi FireDAC Commit Problem
Thema durchsuchen
Ansicht
Themen-Optionen

FireDAC Commit Problem

Ein Thema von Eppos · begonnen am 9. Okt 2014 · letzter Beitrag vom 23. Okt 2014
 
Eppos

Registriert seit: 7. Aug 2006
Ort: Heilbronn
523 Beiträge
 
Delphi 11 Alexandria
 
#1

FireDAC Commit Problem

  Alt 9. Okt 2014, 11:13
Datenbank: Firebird • Version: 2.5 • Zugriff über: FireDAC
Hallo zusammen,

ich bin momentan beim umstellen von FibPlus auf FireDAC und jetzt in der Feinabstimmung.
Ich habe mir für die Erleichterung eine kleine ExecSQL Routine geschrieben die für mich inserts und updates übernimmt:

Delphi-Quellcode:
function ExecQuery( Sql : String; Database : TADConnection ) : boolean;
var myQuery : TADQuery;
begin
  myQuery := TADQuery.Create( Application );
  myQuery.Connection := Database;
  myQuery.SQL.Text := Sql;
  myQuery.ExecSQL;
  myQuery.Connection.Commit; // <-- hier dauert es ca 25 mal so lange wie mit FibPlus
  myQuery.Free;
end;
An der markierten Stelle dauert es ewig.

Hat jemand eine Idee?

Gruß
Eppos
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:28 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz