I have a form with a grid on it. At first I used a cross company AOT query to retrieve data from 5 different datasources, joined to a root table.
This was not performing at al because of authorization matters and the quantity of the data.
My idea was to make the "root" table virtual and place this table in a form as datasource along with the non-virtual datasources I need.
In the executeQuery method of the shared (virtual) table i want to join the other datasources.
Is there a best practice approach for this, or is my thought wrong?
*This post is locked for comments
Hi Domimic,
Thanks for your quick repsonse. I have tried different scenario's and I think you are correct.
At a certain point you have to switch companies to retrieve the data needed.
I'll try to tune the SQL query.
Kind regards,
Rudie Heijnen
Hi Rudie,
I believe you still need to use cross company query regardless whether the "root" table is shared or not. Unfortunately I don't have access to an AX2009 to verify at the spot.
For the performance issue, you should check the generated SQL query and see if there's room for tuning. (e.g. suggested missing index by SQL engine)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156