Horsun Vlad пишет: >>> HV> Спасибо, но - где тут про автоматическую корреляцию плана запроса >>> HV> с параметрами в зависимости от их значенией в рантайме ? >>> Значит Вы будите первыми! ;-) > Мы спим первыми, а вы нас будите всё время :) >> Вторыми :) > Ссылка ?
Да обсуждали уже. В ASA параметры влияют на план. Для меня скорее откровением было то, что в других серверах это не так. http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/dbugen9/00000404.htm Цитата: Optimization proper commences just before execution. If you are using cursors in your application, optimization commences when the cursor is opened. Unlike many other commercial database systems, Adaptive Server Anywhere *optimizes each statement just before executing it*. ... Because Adaptive Server Anywhere performs just-in-time optimization of each statement, *the optimizer has access to the values of host variables* and stored procedure variables. Hence, it makes better choices because it performs better selectivity analysis. --~--~---------~--~----~------------~-------~--~----~ -~----------~----~----~----~------~----~------~--~---

