theshowmecanuck
Programmer
I am trying to get some information on the FIRST_ROWS optimizer option in Oracle 9i.
I know that this option tells the optimizer to return the first row of the result set as fast as possible.
However, I know that in many product's cost based optimizers, that when the first rows type of option is used, that while the first row returns more quickly, the overall speed to return all the rows of the result set is generally slower. That is, slower than using the "normal" cost based optimization (in this case the "CHOOSE" option). And this is especially so if the result set is returning many thousands of rows (even up to a few hundred thousand in extreme cases).
Does anyone know if this is true for Oracle's FIRST_ROWS optimizer option?
BTW, the majority of the work on our server is pure OLTP with on-line CSM applications. So in general, the FIRST_ROWS option makes sense for us. But we do have a few batch type jobs operating on the instance as well.
Thanks,
BillR
I know that this option tells the optimizer to return the first row of the result set as fast as possible.
However, I know that in many product's cost based optimizers, that when the first rows type of option is used, that while the first row returns more quickly, the overall speed to return all the rows of the result set is generally slower. That is, slower than using the "normal" cost based optimization (in this case the "CHOOSE" option). And this is especially so if the result set is returning many thousands of rows (even up to a few hundred thousand in extreme cases).
Does anyone know if this is true for Oracle's FIRST_ROWS optimizer option?
BTW, the majority of the work on our server is pure OLTP with on-line CSM applications. So in general, the FIRST_ROWS option makes sense for us. But we do have a few batch type jobs operating on the instance as well.
Thanks,
BillR