8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Improvement CORE-3433 - Improve GBAK restore performance (records insertion).

This commit is contained in:
asfernandes 2011-04-19 15:24:51 +00:00
parent d7127242c7
commit e53330f9f6

View File

@ -2904,6 +2904,7 @@ rec_type get_data(BurpGlobals* tdgbl, burp_rel* relation)
// Build STORE statement
add_byte(blr, blr_loop);
add_byte(blr, blr_receive);
add_byte(blr, 0);
add_byte(blr, blr_store);
@ -3063,8 +3064,14 @@ rec_type get_data(BurpGlobals* tdgbl, burp_rel* relation)
get_record(&record, tdgbl);
}
ISC_STATUS s;
if (isc_start_and_send (status_vector, &request, &gds_trans, 0, (USHORT) length, buffer, 0))
if (records == 1)
s = isc_start_and_send(status_vector, &request, &gds_trans, 0, (USHORT) length, buffer, 0);
else
s = isc_send(status_vector, &request, 0, (USHORT) length, buffer, 0);
if (s)
{
if (status_vector[1] == isc_not_valid)
{