Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d00c33

Browse files
committed
Increased read limit to 5000.
Fixed bug with increasing `max_message_id` even when nothing was read.
1 parent 9d6bfe8 commit 4d00c33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/core/output_buffers/ut_output_table_buffer.tpb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ create or replace type body ut_output_table_buffer is
9595
lc_long_sleep_time constant number(1) := 1; --sleep for 1 s when waiting long
9696
lc_long_wait_time constant number(1) := 1; --waiting more than 1 sec
9797
l_sleep_time number(2,1) := lc_short_sleep_time;
98-
lc_bulk_limit constant integer := 1000;
98+
lc_bulk_limit constant integer := 5000;
9999
l_max_message_id integer := lc_bulk_limit;
100100

101101
procedure remove_read_data(a_message_rowids t_rowid_tab) is
@@ -154,6 +154,7 @@ create or replace type body ut_output_table_buffer is
154154
end if;
155155
end loop;
156156
remove_read_data(l_message_rowids);
157+
l_max_message_id := l_max_message_id + lc_bulk_limit;
157158
end if;
158159
if l_finished or l_already_waited_for >= l_wait_for then
159160
remove_buffer_info();
@@ -164,7 +165,6 @@ create or replace type body ut_output_table_buffer is
164165
);
165166
end if;
166167
end if;
167-
l_max_message_id := l_max_message_id + lc_bulk_limit;
168168
end loop;
169169
return;
170170
end;

0 commit comments

Comments
 (0)