Autor Beitrag
Sy- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177



BeitragVerfasst: Di 07.03.06 12:00 
Sehe ich das richtig, dass IBX nur für Interbase/Firebird ist?
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Di 07.03.06 12:14 
user profile iconSy- hat folgendes geschrieben:
Sehe ich das richtig, dass IBX nur für Interbase/Firebird ist?

Eigentlich nur für Interbase. FB und IB bewegen sich ein wenig auseinander und ich denke, es wird die Zeit kommen, wo IBX nicht mehr korrekt mit Firebird funktioniert.

Aber ansonsten: Ja.
Sy- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177



BeitragVerfasst: Di 07.03.06 12:34 
hmm..
also wegen einem programm steige ich nicht so schnell auf ne andere DB um
außerdem, was gibts denn so besonderes bei firebird im gegensatz zu postgre?

gibts ein anständiges kompo für postgre?
Amiga-Fan
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 534



BeitragVerfasst: Di 07.03.06 12:51 
Zitat:
Was aber viel der grössere Performance-Fresser ist, ist das Updaten der Progressbar. Lass die weg und s'wird schneller sein


ist das wirklich gravierend?

_________________
- Leg dich nie mit einem Berufsprogrammierer an
- Wahre Profis akzeptieren keine einfachen Lösungen
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 07.03.06 12:55 
Ja.
Lies mal 20000 Datensätze ein. Einmal mit ProgressBar und einmal ohne. Schrittweite natürlich für jeden einzelnen Datensatz.
Man kann das natürlich optimieren und nur jeden x-ten Datensatz einen Progressschritt definieren, aber auch das macht den eigentlichen Vorgang langsamer.
Amiga-Fan
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 534



BeitragVerfasst: Di 07.03.06 12:58 
nenn mal zahlen bitte :) wieviel langsamer hast du denn bei dir? ungefähr reicht.

_________________
- Leg dich nie mit einem Berufsprogrammierer an
- Wahre Profis akzeptieren keine einfachen Lösungen
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 07.03.06 13:20 
Na komm, das ist doch einfach selbst zu testen.
Aber bitte eine kleine Demo im Anhang
Hier der wesentliche Teil des Sources:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
procedure TForm1.Button1Click(Sender: TObject);
var
  sl : TStringList;
  i : Integer;
  Zeit : TTime;
begin
  ProgressBar1.Min := 1;
  ProgressBar1.Max := 500000;
  ProgressBar1.Position := 1;
  sl := TstringList.Create();
  Zeit := Time;
  for i := 1 to 500000 do
  begin
    sl.add('AAA');
    ProgressBar1.StepIt;
  end;
  sl.free;
  Zeit := Time - Zeit;
  ShowMessage('Benötigt: ' + TimeToStr(Zeit));
end;

procedure TForm1.Button2Click(Sender: TObject);
var
  sl : TStringList;
  i : Integer;
  Zeit : TTime;
begin
  Zeit := Time;
  ProgressBar1.Position := 1;
  sl := TstringList.Create();
  for i := 1 to 500000 do
  begin
    sl.add('AAA');
  end;
  sl.free;
  Zeit := Time - Zeit;
  ShowMessage('Benötigt: ' + TimeToStr(Zeit));
end;

Sonst heißt es noch, ich habe getrickst.
Einloggen, um Attachments anzusehen!
Amiga-Fan
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 534



BeitragVerfasst: Do 09.03.06 15:26 
hätte ich fast vergessen zu antworten.

16 zu 1 Sekunden ist ja schon ein Unterschied (auf meinem Rechner). Danke.

_________________
- Leg dich nie mit einem Berufsprogrammierer an
- Wahre Profis akzeptieren keine einfachen Lösungen