A beginners level talk at the syntax for bulk processing in PLSQL, why it is so important for performance and scalability, and how to diagnose errors when it goes wrong
46. spinning
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
can I have the latch ?
46
58. âą Get latch
âą Search along list of blocks in memory
âą Read block
âą Extract row of interest
âą Release latch
âą Give row back to client
"fetch a row"
58
SQL>
...
9 fetch c_products
10 into l_each;
...
62. âą Get latch
âą Walk along list
âą Get block
âą Extract single row
âą Release latch
âą Give row back to client
âą Get latch (again)
âą Walk along list (again)
âą Get block (again)
âą Extract single row
âą Release latch (again)
âą Give row back to client (again)
Row #1
Row #2
âą Get latch (again)
âą Walk along list (again)
âą Get block (again)
âą Extract single row
âą Release latch (again)
âą Give row back to client (again)
Row #3
62
loop
fetch c_products
into l_each;
exit when c_products%notfound;
end loop;
64. "fetch a row"
âą Get latch
âą Walk along list
âą Get block
âą Pin the block
âą Release latch
âą Give row 1 back to client
âą Give row 2 back to client
âŠ
âą Give row n to client
âą Get latch
âą Walk along list
âą Remove my pin on the block
âą Release latch
âand .. Iâll will need
several rows from
this blockâ
Connor is
using this
block