|
14.07.2008, 00:11 | #1 |
Участник
|
AX Developer tips: Dynamics AX Performance issue. Cross object references drawbacks.
Источник: http://axdevposts.blogspot.com/2008/...sue-cross.html
============== Recently I'm working on framework for Dynamics AX 4.0. Project includes form tree control data viewing. Basically tree framework includes class representing the whole tree and each tree node. At first each tree node class instance (let's call it TreeItemClass) is associated with particular FormTreeItem storing reference to it (parmFormTreeItem()). Then reference to this instance is being stored in FormTreeItem.data() property. The issue appeared when tree was built and I was trying to expand it's node containing a lot of sub nodes. Each time I expanded a new node, expanding time increased. After throughly debugging I discovered that there were huge delays in object assignment. Probably the problem was in garbage collector, which tried to calculate references. Anyway, problem was solved by removing FormTreeItem reference from TreeItemClass and changing it to TreeItemIdx. So be careful with cross object refernces in your code and try to avoid it. Источник: http://axdevposts.blogspot.com/2008/...sue-cross.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|