-
-
Notifications
You must be signed in to change notification settings - Fork 245
Closed
Description
I've identified a performance issue related to the execution speed when working with a global temporary table in 5.0.0.1271-RC2 Below is a simplified example to reproduce the problem:
create global temporary table gtt_test (
id integer not null,
t timestamp default current_timestamp
) on commit preserve rows;
alter table gtt_test add constraint pk_gtt_test primary key (id);
The problem occurs during the insertion of a large number of rows, and the performance has significantly decreased compared to Firebird 3.0.10. The insertion speed has dropped by approximately 2 times.
Here is an example of inserting a large number of rows:
execute block as
declare variable id_session int;
declare variable k int = 0;
begin
while (k < 1000000) do
begin
insert into gtt_test(id) values (:k);
k = k + 1;
end
end