Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exessive memory usage on BLOB concatenation [CORE3838] #4180

Closed
firebird-automations opened this issue Apr 30, 2012 · 5 comments
Closed

Exessive memory usage on BLOB concatenation [CORE3838] #4180

firebird-automations opened this issue Apr 30, 2012 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Alexey Parshin (happysquirrel)

Is related to CORE3948

When using the BLOB concatenation in procedure (see below) then memory consumption on the server is 2GB (for that connection). A bit more complicated procedure inserting final BLOB to the record consumed about 40GB.

SET TERM ^ ;

CREATE OR ALTER PROCEDURE test_blob_memory
RETURNS (RESULT BLOB)
AS
DECLARE VARIABLE counter INT;
BEGIN
counter = 0;
RESULT = 'test';

WHILE \(counter < 15000\) DO
BEGIN
    RESULT = RESULT \|\| ' 1234567890';
    counter = counter \+ 1;
END
SUSPEND;

END^

SET TERM ; ^

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Link: This issue is related to CORE3948 [ CORE3948 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Duplicates CORE1658. Must be fixed in 2.1.4.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant