| 17093 | */ |
| 17094 | |
| 17095 | bool JOIN_TAB::pfs_batch_update() |
| 17096 | { |
| 17097 | /* |
| 17098 | Use PFS batch mode if |
| 17099 | 1. tab is an inner-most table, or |
| 17100 | 2. will read more than one row (not eq_ref or const access type) |
| 17101 | 3. no subqueries |
| 17102 | */ |
| 17103 | |
| 17104 | return join->join_tab + join->table_count - 1 == this && // 1 |
| 17105 | type != JT_EQ_REF && type != JT_CONST && type != JT_SYSTEM && // 2 |
| 17106 | (!select_cond || !select_cond->with_subquery()); // 3 |
| 17107 | } |
| 17108 | |
| 17109 | |
| 17110 | /** |
no test coverage detected