Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dbms_output.put_line

Does dbms_output.put_line decrease the performance in plsql code?

like image 411
Orange Avatar asked Feb 07 '11 08:02

Orange


People also ask

What is DBMS_OUTPUT Put_line?

The PUT procedure and PUT_LINE procedure in this package enable you to place information in a buffer that can be read by another procedure or package. In a separate PL/SQL procedure or anonymous block, you can display the buffered information by calling the GET_LINE procedure and GET_LINES procedure.

Where can I see the DBMS_OUTPUT Put_line?

PUT_LINE('Hello'); END; This would display the message in SQL*Plus. To enable the output in SQL Developer, you'll need to: Display the DBMS_OUTPUT panel by going to View > DBMS Output.

What is DBMS_OUTPUT in PL SQL?

The DBMS_OUTPUT is a built-in package that enables you to display output, debugging information, and send messages from PL/SQL blocks, subprograms, packages, and triggers. We have already used this package throughout our tutorial.

Does DBMS_OUTPUT Put_line affect performance?

Every extra line of code decreases the performance of code. After all, it is an extra instruction to be executed, which at least consumes some CPU. So yes, dbms_output. put_line decreases the performance.


1 Answers

Every extra line of code decreases the performance of code. After all, it is an extra instruction to be executed, which at least consumes some CPU. So yes, dbms_output.put_line decreases the performance.

The real question is: does the benefit of this extra line of code outweigh the performance penalty? Only you can answer that question.

Regards,
Rob.

like image 183
Rob van Wijk Avatar answered Sep 24 '22 11:09

Rob van Wijk