AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.10.2015, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,493 / 847 (79) +++++++
Регистрация: 28.10.2006
sashanazarov: When fields lists don't work as expected
Источник: http://sashanazarov.blogspot.com/201...dont-work.html
==============

Did you know that a field list in a single-record select-statement is not always beneficial in comparison to a select firstonly * from... (or a static find-method)?

The thing is, when a where-clause matches a unique index (in AX 2009 – a primary index), the AOS may find the complete record in the cache and return it. And if this is the very first call, it will pull the whole record anyway, in order to be able to cache it. This may be proved by debugging.

So please use find-methods where possible, because they are easier to read and maintain. And remember: a while select with a nested find-method call may actually perform better than a join – thanks to caching. Therefore do measure performance to confirm that your select-statement is the most optimal one.


Источник: http://sashanazarov.blogspot.com/201...dont-work.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
DynamicsAxSCM: WHS Work List Blog bot DAX Blogs 0 19.06.2015 15:11
axmfg: Warehouse work for raw material picking split per route operation Blog bot DAX Blogs 0 22.09.2014 18:11
axmfg: Replacing work order types for production output in CU8 Blog bot DAX Blogs 0 12.09.2014 18:12
sashanazarov: Mandatory fields and table hierarchies Blog bot DAX Blogs 0 22.03.2013 16:11
Dave: Do and Don't Lists Blog bot DAX Blogs 2 05.03.2008 15:48

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 07:30.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.