Skip to content

Performance issue with time zones #7854

@shavluk

Description

@shavluk

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions