Updated text on stored procedures and triggers.

parent 13f16b44
...@@ -3972,6 +3972,7 @@ the entire query but can refer to the stored procedure. This provides better ...@@ -3972,6 +3972,7 @@ the entire query but can refer to the stored procedure. This provides better
performance because the query has to be parsed only once, and less information performance because the query has to be parsed only once, and less information
needs to be sent between the server and the client. You can also raise the needs to be sent between the server and the client. You can also raise the
conceptual level by having libraries of functions in the server. conceptual level by having libraries of functions in the server.
Unfortunately, stored procedures are not very standardised yet.
A trigger is a stored procedure that is invoked when a particular event A trigger is a stored procedure that is invoked when a particular event
occurs. For example, you can install a stored procedure that is triggered occurs. For example, you can install a stored procedure that is triggered
...@@ -3979,10 +3980,9 @@ each time a record is deleted from a transaction table and that automatically ...@@ -3979,10 +3980,9 @@ each time a record is deleted from a transaction table and that automatically
deletes the corresponding customer from a customer table when all his deletes the corresponding customer from a customer table when all his
transactions are deleted. transactions are deleted.
The planned update language will be able to handle stored procedures, but The planned update language will be able to handle stored procedures.
without triggers. Triggers usually slow down everything, even queries for Our aim is to have stored procedures implemented in MySQL 4.1.
which they are not needed. To see when MySQL will get stored procedures, We are also looking at triggers.
see @ref{TODO}.
@node ANSI diff Foreign Keys, ANSI diff Views, ANSI diff Triggers, Differences from ANSI @node ANSI diff Foreign Keys, ANSI diff Views, ANSI diff Triggers, Differences from ANSI
...@@ -5987,11 +5987,9 @@ Add use of @code{zlib()} for @code{gzip}-ed files to @code{LOAD DATA INFILE}. ...@@ -5987,11 +5987,9 @@ Add use of @code{zlib()} for @code{gzip}-ed files to @code{LOAD DATA INFILE}.
@item @item
Fix sorting and grouping of @code{BLOB} columns (partly solved now). Fix sorting and grouping of @code{BLOB} columns (partly solved now).
@item @item
Stored procedures. This is currently not regarded to be very Stored procedures.
important as stored procedures are not very standardised yet. @item
Another problem is that true stored procedures make it much harder for Add a simple (atomic) update language that
the optimiser and in many cases the result is slower than before
We will, on the other hand, add a simple (atomic) update language that
can be used to write loops and such in the MySQL server. can be used to write loops and such in the MySQL server.
@item @item
Change to use semaphores when counting threads. One should first implement Change to use semaphores when counting threads. One should first implement
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment